From 2a4ab59d4c700d64885328cfaf2a0f73f54fdf70 Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Fri, 31 Jan 2020 17:25:22 +0300 Subject: [PATCH] Fix goback customization --- apps/documenteditor/main/app/view/FileMenu.js | 4 ++++ apps/presentationeditor/main/app/view/FileMenu.js | 4 ++++ apps/spreadsheeteditor/main/app/view/FileMenu.js | 4 ++++ 3 files changed, 12 insertions(+) diff --git a/apps/documenteditor/main/app/view/FileMenu.js b/apps/documenteditor/main/app/view/FileMenu.js index a308ad840..f6b7f36e1 100644 --- a/apps/documenteditor/main/app/view/FileMenu.js +++ b/apps/documenteditor/main/app/view/FileMenu.js @@ -305,6 +305,10 @@ define([ this.mode.canBack ? this.$el.find('#fm-btn-back').show().prev().show() : this.$el.find('#fm-btn-back').hide().prev().hide(); + if (!this.customizationDone) { + this.customizationDone = true; + Common.Utils.applyCustomization(this.mode.customization, {goback: '#fm-btn-back > a'}); + } this.panels['opts'].setMode(this.mode); this.panels['info'].setMode(this.mode); diff --git a/apps/presentationeditor/main/app/view/FileMenu.js b/apps/presentationeditor/main/app/view/FileMenu.js index bdddd3855..5d5189f4d 100644 --- a/apps/presentationeditor/main/app/view/FileMenu.js +++ b/apps/presentationeditor/main/app/view/FileMenu.js @@ -285,6 +285,10 @@ define([ this.mode.canBack ? this.$el.find('#fm-btn-back').show().prev().show() : this.$el.find('#fm-btn-back').hide().prev().hide(); + if (!this.customizationDone) { + this.customizationDone = true; + Common.Utils.applyCustomization(this.mode.customization, {goback: '#fm-btn-back > a'}); + } this.miHelp[this.mode.canHelp ?'show':'hide'](); this.miHelp.$el.prev()[this.mode.canHelp ?'show':'hide'](); diff --git a/apps/spreadsheeteditor/main/app/view/FileMenu.js b/apps/spreadsheeteditor/main/app/view/FileMenu.js index dad0f7a27..698bc13f5 100644 --- a/apps/spreadsheeteditor/main/app/view/FileMenu.js +++ b/apps/spreadsheeteditor/main/app/view/FileMenu.js @@ -276,6 +276,10 @@ define([ this.mode.canBack ? this.$el.find('#fm-btn-back').show().prev().show() : this.$el.find('#fm-btn-back').hide().prev().hide(); + if (!this.customizationDone) { + this.customizationDone = true; + Common.Utils.applyCustomization(this.mode.customization, {goback: '#fm-btn-back > a'}); + } this.miHelp[this.mode.canHelp ?'show':'hide'](); this.miHelp.$el.prev()[this.mode.canHelp ?'show':'hide']();