From 26da7307c6808cc33c90592d338bfd28c5bd721f Mon Sep 17 00:00:00 2001 From: Maxim Kadushkin Date: Mon, 10 Apr 2017 16:41:07 +0300 Subject: [PATCH] [DE] refactoring --- apps/documenteditor/main/app/controller/Main.js | 2 +- apps/documenteditor/main/app/view/Viewport.js | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/apps/documenteditor/main/app/controller/Main.js b/apps/documenteditor/main/app/controller/Main.js index 5eee39c47..017417c59 100644 --- a/apps/documenteditor/main/app/controller/Main.js +++ b/apps/documenteditor/main/app/controller/Main.js @@ -1051,7 +1051,7 @@ define([ Common.NotificationCenter.trigger('app:face', this.appOptions); this.hidePreloader(); - this.onLongActionBegin(Asc.c_oAscAsyncActionType['BlockInteraction'], LoadingDocument); + this.onLongActionBegin(Asc.c_oAscAsyncActionType.BlockInteraction, LoadingDocument); } this.api.asc_setViewMode(!this.appOptions.isEdit); diff --git a/apps/documenteditor/main/app/view/Viewport.js b/apps/documenteditor/main/app/view/Viewport.js index 3a0a763a1..88948cc26 100644 --- a/apps/documenteditor/main/app/view/Viewport.js +++ b/apps/documenteditor/main/app/view/Viewport.js @@ -136,9 +136,8 @@ define([ me._rightMenu = rightMenuView.render(this.mode); - var value = Common.localStorage.getItem('de-hidden-status'); - if (value !== null && parseInt(value) == 1) - statusBarView.setVisible(false); + if ( Common.localStorage.getBool('de-hidden-status') ) + DE.getController('Statusbar').getView('Statusbar').setVisible(false); }, setMode: function(mode) {