mirror of
https://github.com/ONLYOFFICE/web-apps.git
synced 2026-07-24 05:57:18 +08:00
Fix Bug 70442
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
||||
@ -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');
|
||||
});
|
||||
|
||||
@ -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');
|
||||
});
|
||||
|
||||
@ -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');
|
||||
});
|
||||
|
||||
@ -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');
|
||||
});
|
||||
@ -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');
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user