Skip to content

Commit

Permalink
Fix Bug 70442
Browse files Browse the repository at this point in the history
  • Loading branch information
JuliaRadzhabova committed Sep 25, 2024
1 parent 5ab6ca3 commit e35136f
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 6 deletions.
8 changes: 7 additions & 1 deletion apps/common/main/lib/controller/LaunchController.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 () {
Expand All @@ -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);
}
Expand Down
2 changes: 1 addition & 1 deletion apps/documenteditor/forms/app_pack.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
});
2 changes: 1 addition & 1 deletion apps/documenteditor/main/app_pack.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
});
2 changes: 1 addition & 1 deletion apps/pdfeditor/main/app_pack.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
});
2 changes: 1 addition & 1 deletion apps/presentationeditor/main/app_pack.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
});
2 changes: 1 addition & 1 deletion apps/spreadsheeteditor/main/app_pack.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
});

0 comments on commit e35136f

Please sign in to comment.