From d64d58daa771178c890a912e46b6500364aa8599 Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Thu, 1 Sep 2016 14:49:33 +0300 Subject: [PATCH] [DE] Repeat Commit: 7a2e17340927f794415221f9ba23d233257ef5d1 [7a2e173] Set full toolbar in light version. --- apps/documenteditor/main/app/view/Toolbar.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/apps/documenteditor/main/app/view/Toolbar.js b/apps/documenteditor/main/app/view/Toolbar.js index 5d66eadee..76fd3bd35 100644 --- a/apps/documenteditor/main/app/view/Toolbar.js +++ b/apps/documenteditor/main/app/view/Toolbar.js @@ -975,7 +975,7 @@ define([ this.btnPageMargins.menu.items[0].setVisible(false); var value = Common.localStorage.getItem("de-compact-toolbar"); - var valueCompact = (mode.isLightVersion || value !== null && parseInt(value) == 1); + var valueCompact = (value !== null && parseInt(value) == 1); me.$el.html(this.template({ isCompactView: valueCompact @@ -1397,7 +1397,7 @@ define([ /**/ var mode = this.mode; var value = Common.localStorage.getItem("de-compact-toolbar"); - var valueCompact = (mode.isLightVersion || value !== null && parseInt(value) == 1); + var valueCompact = (value !== null && parseInt(value) == 1); value = Common.localStorage.getItem("de-hidden-title"); var valueTitle = (value !== null && parseInt(value) == 1); @@ -1408,7 +1408,6 @@ define([ value = Common.localStorage.getItem("de-hidden-rulers"); var valueRulers = (value !== null && parseInt(value) == 1); - this.mnuitemCompactToolbar.setVisible(!mode.isLightVersion); this.mnuitemCompactToolbar.setChecked(valueCompact, true); this.mnuitemCompactToolbar.on('toggle', _.bind(this.changeViewMode, this));