From 9d0fda6105c0a392ad59929454b46b82cdc652ce Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Thu, 6 Aug 2020 23:15:40 +0300 Subject: [PATCH] [DE] Fix file info in view mode --- apps/documenteditor/main/app/view/FileMenuPanels.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/apps/documenteditor/main/app/view/FileMenuPanels.js b/apps/documenteditor/main/app/view/FileMenuPanels.js index 366e01b68..192c351e1 100644 --- a/apps/documenteditor/main/app/view/FileMenuPanels.js +++ b/apps/documenteditor/main/app/view/FileMenuPanels.js @@ -933,7 +933,7 @@ define([ '', '', '', - '
', + '
', '', '', '', @@ -1053,6 +1053,7 @@ define([ this.btnApply.on('click', _.bind(this.applySettings, this)); this.pnlInfo = $markup.findById('#fms-flex-info'); + this.pnlApply = $markup.findById('#fms-flex-apply'); this.rendered = true; @@ -1081,8 +1082,8 @@ define([ this.updateStatisticInfo(); this.updateFileInfo(); - this.updateScroller(); this.scroller && this.scroller.scrollTop(0); + this.updateScroller(); }, hide: function() { @@ -1235,7 +1236,7 @@ define([ setMode: function(mode) { this.mode = mode; this.inputAuthor.setVisible(mode.isEdit); - this.btnApply.setVisible(mode.isEdit); + this.pnlApply.toggleClass('hidden', !mode.isEdit); this.tblAuthor.find('.close').toggleClass('hidden', !mode.isEdit); if (!mode.isEdit) { this.inputTitle._input.attr('placeholder', '');