Fix Bug 70442

This commit is contained in:
Julia Radzhabova
2024-09-25 14:56:37 +03:00
parent 5ab6ca310a
commit e35136f954
6 changed files with 12 additions and 6 deletions

View File

@ -40,6 +40,7 @@ define([
this.api = api;
Common.NotificationCenter.on('app:ready', on_app_ready.bind(this));
Common.NotificationCenter.on('app:face', on_hide_loader.bind(this));
Common.NotificationCenter.on('app-pack:loaded', on_app_pack_loaded.bind(this));
}
const load_scripts = function () {
@ -53,14 +54,19 @@ define([
if (!!Common.UI.ScreenReaderFocusManager) {
Common.UI.ScreenReaderFocusManager.init(me.api);
}
_all_scripts_loaded = true;
if ( !!window.less ) { // detect development mode
_all_scripts_loaded = true;
Common.NotificationCenter.trigger('script:loaded');
}
});
}
const on_app_pack_loaded = function (config) {
_all_scripts_loaded = true;
Common.NotificationCenter.trigger('script:loaded');
}
const on_app_ready = function (config) {
load_scripts.call(this);
}

View File

@ -7,5 +7,5 @@ require([
'common/main/lib/view/SignDialog',
'common/main/lib/view/SignSettingsDialog',
], function () {
Common.NotificationCenter.trigger('script:loaded');
Common.NotificationCenter.trigger('app-pack:loaded');
});

View File

@ -66,5 +66,5 @@ require([
'documenteditor/main/app/view/ProtectDialog',
'documenteditor/main/app/view/MailMergeEmailDlg'
], function () {
Common.NotificationCenter.trigger('script:loaded');
Common.NotificationCenter.trigger('app-pack:loaded');
});

View File

@ -29,5 +29,5 @@ require([
'pdfeditor/main/app/view/ShapeSettingsAdvanced',
'pdfeditor/main/app/view/TableSettingsAdvanced'
], function () {
Common.NotificationCenter.trigger('script:loaded');
Common.NotificationCenter.trigger('app-pack:loaded');
});

View File

@ -40,5 +40,5 @@ require([
'presentationeditor/main/app/view/DateTimeDialog',
'presentationeditor/main/app/view/ChartSettingsAdvanced'
], function () {
Common.NotificationCenter.trigger('script:loaded');
Common.NotificationCenter.trigger('app-pack:loaded');
});

View File

@ -85,5 +85,5 @@ require([
'spreadsheeteditor/main/app/view/AutoFilterDialog',
'spreadsheeteditor/main/app/view/PivotGroupDialog',
], function () {
Common.NotificationCenter.trigger('script:loaded');
Common.NotificationCenter.trigger('app-pack:loaded');
});