Hopefully a bug fix for file upload progress on Event pages. Using the older Events specific component.
This commit is contained in:
@@ -177,12 +177,12 @@ if ($ae_loc && $ae_sess && ($ae_loc.ver != $ae_sess.ver)) {
|
|||||||
// localStorage caches - Check if the last refresh timestamp for $ae_loc.last_refresh is no more than 48 hours ago.
|
// localStorage caches - Check if the last refresh timestamp for $ae_loc.last_refresh is no more than 48 hours ago.
|
||||||
|
|
||||||
// Minutes reference:
|
// Minutes reference:
|
||||||
// 240 = 4 hours; 720 = 12 hours; 2880 = 48 hours;
|
// 240 = 4 hours; 720 = 12 hours; 2880 = 48 hours; 7200 = 5 days;
|
||||||
// 10080 = 1 week; 20160 = 2 weeks; 43200 = 1 month;
|
// 10080 = 1 week; 20160 = 2 weeks; 43200 = 1 month;
|
||||||
let default_refresh_minutes: number = 120; // default is 2 hours
|
let default_refresh_minutes: number = 7200; // default was 4 hours
|
||||||
let authenticated_refresh_minutes: number = 240; // default is 4 hours
|
let authenticated_refresh_minutes: number = 10080; // default was 12 hours
|
||||||
let trusted_refresh_minutes: number = 10080; // default is 1 week
|
let trusted_refresh_minutes: number = 20160; // default was 1 week
|
||||||
let manager_refresh_minutes: number = 20160; // default is 2 weeks
|
let manager_refresh_minutes: number = 20160; // default was 2 weeks
|
||||||
if ($ae_loc?.site_cfg_json?.default_refresh_minutes) {
|
if ($ae_loc?.site_cfg_json?.default_refresh_minutes) {
|
||||||
default_refresh_minutes = $ae_loc.site_cfg_json.default_refresh_minutes;
|
default_refresh_minutes = $ae_loc.site_cfg_json.default_refresh_minutes;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -136,7 +136,7 @@ async function handle_input_upload_files(input_upload_files, task_id) {
|
|||||||
// Uncomment and the post_promise is not seen by the "await" below
|
// Uncomment and the post_promise is not seen by the "await" below
|
||||||
// post_promise = await api.post_object({api_cfg: $cfg.api, endpoint: endpoint, params: params, data:form_data});
|
// post_promise = await api.post_object({api_cfg: $cfg.api, endpoint: endpoint, params: params, data:form_data});
|
||||||
// Uncomment so that the post_promise is not seen by the "await" below
|
// Uncomment so that the post_promise is not seen by the "await" below
|
||||||
ae_promises.upload__hosted_file_obj = await api.post_object({
|
ae_promises.upload__hosted_file_obj = api.post_object({
|
||||||
api_cfg: $ae_api,
|
api_cfg: $ae_api,
|
||||||
endpoint: endpoint,
|
endpoint: endpoint,
|
||||||
// params: params,
|
// params: params,
|
||||||
|
|||||||
Reference in New Issue
Block a user