diff --git a/apps/common/main/lib/component/SideMenu.js b/apps/common/main/lib/component/SideMenu.js index bff4e986ca..76ccaf2dec 100644 --- a/apps/common/main/lib/component/SideMenu.js +++ b/apps/common/main/lib/component/SideMenu.js @@ -46,6 +46,7 @@ define([ Common.UI.SideMenu = Backbone.View.extend((function () { return { + buttons: [], btnMoreContainer: undefined, render: function () { @@ -123,7 +124,7 @@ define([ caption: btn.hint, iconImg: btn.options.iconImg, template: _.template([ - '', + '', '', '<%= caption %>', '' diff --git a/apps/common/main/lib/view/Plugins.js b/apps/common/main/lib/view/Plugins.js index 0fcc87e9b5..964d44fd12 100644 --- a/apps/common/main/lib/view/Plugins.js +++ b/apps/common/main/lib/view/Plugins.js @@ -333,6 +333,7 @@ define([ dataHintDirection: 'bottom', dataHintOffset: 'small' }); + this.lockedControls.push(btn); return btn; }, diff --git a/apps/documenteditor/main/app/controller/LeftMenu.js b/apps/documenteditor/main/app/controller/LeftMenu.js index f4b77cf723..b709a2fabe 100644 --- a/apps/documenteditor/main/app/controller/LeftMenu.js +++ b/apps/documenteditor/main/app/controller/LeftMenu.js @@ -645,6 +645,7 @@ define([ this.viewmode = viewmode; this.leftMenu.panelSearch && this.leftMenu.panelSearch.setSearchMode(this.viewmode ? 'no-replace' : 'search'); + this.leftMenu.setDisabledPluginButtons(this.viewmode); }, SetDisabled: function(disable, options) { diff --git a/apps/pdfeditor/main/app/controller/LeftMenu.js b/apps/pdfeditor/main/app/controller/LeftMenu.js index a6edca1336..e01776f2d6 100644 --- a/apps/pdfeditor/main/app/controller/LeftMenu.js +++ b/apps/pdfeditor/main/app/controller/LeftMenu.js @@ -568,6 +568,7 @@ define([ var viewmode = this._state.disableEditing; if (this.viewmode === viewmode) return; this.viewmode = viewmode; + this.leftMenu.setDisabledPluginButtons(this.viewmode); }, SetDisabled: function(disable, options) { diff --git a/apps/presentationeditor/main/app/controller/LeftMenu.js b/apps/presentationeditor/main/app/controller/LeftMenu.js index 843ac706df..8025102d9d 100644 --- a/apps/presentationeditor/main/app/controller/LeftMenu.js +++ b/apps/presentationeditor/main/app/controller/LeftMenu.js @@ -498,6 +498,7 @@ define([ this.viewmode = mode; this.leftMenu.panelSearch && this.leftMenu.panelSearch.setSearchMode(this.viewmode ? 'no-replace' : 'search'); + this.leftMenu.setDisabledPluginButtons(this.viewmode); }, onApiServerDisconnect: function(enableDownload) { diff --git a/apps/spreadsheeteditor/main/app/controller/DocumentHolder.js b/apps/spreadsheeteditor/main/app/controller/DocumentHolder.js index db55bdb730..c160f7c703 100644 --- a/apps/spreadsheeteditor/main/app/controller/DocumentHolder.js +++ b/apps/spreadsheeteditor/main/app/controller/DocumentHolder.js @@ -192,6 +192,7 @@ define([ me.onCellsRange(status); }, 'tabs:dragend': _.bind(me.onDragEndMouseUp, me), + 'pivot:dragend': _.bind(me.onDragEndMouseUp, me), 'protect:wslock': _.bind(me.onChangeProtectSheet, me) }); Common.Gateway.on('processmouse', _.bind(me.onProcessMouse, me)); diff --git a/apps/spreadsheeteditor/main/app/controller/LeftMenu.js b/apps/spreadsheeteditor/main/app/controller/LeftMenu.js index 6097f5b311..10810f4c00 100644 --- a/apps/spreadsheeteditor/main/app/controller/LeftMenu.js +++ b/apps/spreadsheeteditor/main/app/controller/LeftMenu.js @@ -629,6 +629,7 @@ define([ this.viewmode = mode; this.leftMenu.panelSearch && this.leftMenu.panelSearch.setSearchMode(this.viewmode ? 'no-replace' : 'search'); + this.leftMenu.setDisabledPluginButtons(this.viewmode); }, onApiServerDisconnect: function(enableDownload) { diff --git a/apps/spreadsheeteditor/main/app/view/PivotSettings.js b/apps/spreadsheeteditor/main/app/view/PivotSettings.js index 18d6f527f6..8733628669 100644 --- a/apps/spreadsheeteditor/main/app/view/PivotSettings.js +++ b/apps/spreadsheeteditor/main/app/view/PivotSettings.js @@ -208,6 +208,7 @@ define([ onDragEnd: function() { this._dragEl && this._dragEl.remove(); this._dragEl = null; + Common.NotificationCenter.trigger('pivot:dragend', this); }, onFieldsDragStart: function (item, index, event) {