diff --git a/apps/spreadsheeteditor/mobile/app/controller/Main.js b/apps/spreadsheeteditor/mobile/app/controller/Main.js index 71d3bbf67..f7c7663d4 100644 --- a/apps/spreadsheeteditor/mobile/app/controller/Main.js +++ b/apps/spreadsheeteditor/mobile/app/controller/Main.js @@ -284,6 +284,7 @@ define([ if (type === Asc.c_oAscAsyncActionType.BlockInteraction && id == Asc.c_oAscAsyncAction.Open) { Common.Gateway.internalMessage('documentReady', {}); + Common.NotificationCenter.trigger('document:ready'); me.onDocumentContentReady(); } diff --git a/apps/spreadsheeteditor/mobile/app/controller/Statusbar.js b/apps/spreadsheeteditor/mobile/app/controller/Statusbar.js index 127b0dc32..b3ea762af 100644 --- a/apps/spreadsheeteditor/mobile/app/controller/Statusbar.js +++ b/apps/spreadsheeteditor/mobile/app/controller/Statusbar.js @@ -88,6 +88,7 @@ define([ }); // this.bindViewEvents(this.statusbar, this.events); + Common.NotificationCenter.on('document:ready', this.onApiSheetsChanged.bind(this)); }, setApi: function(api) {