From d8a722c1c4e104f9dca356ccf721ac01c4a8f03c Mon Sep 17 00:00:00 2001 From: Julia Svinareva Date: Wed, 8 May 2019 11:36:06 +0300 Subject: [PATCH] [SSE mobile] fix code structure --- .../mobile/app/controller/DocumentHolder.js | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/apps/spreadsheeteditor/mobile/app/controller/DocumentHolder.js b/apps/spreadsheeteditor/mobile/app/controller/DocumentHolder.js index 18e9150d4..86cd96482 100644 --- a/apps/spreadsheeteditor/mobile/app/controller/DocumentHolder.js +++ b/apps/spreadsheeteditor/mobile/app/controller/DocumentHolder.js @@ -323,17 +323,12 @@ define([ }); } } - if (!this.api.asc_getSheetViewSettings().asc_getIsFreezePane()) { - menuItems.push({ - caption: me.menuFreezePanes, - event: 'freezePanes' - }); - } else { - menuItems.push({ - caption: me.menuUnfreezePanes, - event: 'freezePanes' - }); - } + + menuItems.push({ + caption: this.api.asc_getSheetViewSettings().asc_getIsFreezePane() ? me.menuUnfreezePanes : me.menuFreezePanes, + event: 'freezePanes' + }); + } }