From 14d9de319f6688f20fc04eaf7efba9c57d142d06 Mon Sep 17 00:00:00 2001 From: Maxim Kadushkin Date: Fri, 23 Dec 2016 15:07:54 +0300 Subject: [PATCH] [SSE mobile] load worksheets tabs on app launch --- apps/spreadsheeteditor/mobile/app/controller/Main.js | 1 + apps/spreadsheeteditor/mobile/app/controller/Statusbar.js | 1 + 2 files changed, 2 insertions(+) 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) {