From fe68423a70c58e2251b16db021087261363e6f82 Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Tue, 20 Mar 2018 14:10:29 +0300 Subject: [PATCH] [PE] Fix Bug 37256 --- apps/presentationeditor/main/app/controller/LeftMenu.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/presentationeditor/main/app/controller/LeftMenu.js b/apps/presentationeditor/main/app/controller/LeftMenu.js index a8e8368a8..9ec7c4be2 100644 --- a/apps/presentationeditor/main/app/controller/LeftMenu.js +++ b/apps/presentationeditor/main/app/controller/LeftMenu.js @@ -387,12 +387,12 @@ define([ }, onApiCountPages: function(count) { - if (this._state.no_slides !== (count<=0) && this.mode.isEdit) { + if (this._state.no_slides !== (count<=0)) { this._state.no_slides = (count<=0); /** coauthoring begin **/ - this.leftMenu.btnComments.setDisabled(this._state.no_slides); + this.leftMenu.btnComments && this.leftMenu.btnComments.setDisabled(this._state.no_slides); /** coauthoring end **/ - this.leftMenu.btnSearch.setDisabled(this._state.no_slides); + this.leftMenu.btnSearch && this.leftMenu.btnSearch.setDisabled(this._state.no_slides); } },