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']();