Merge pull request #2701 from ONLYOFFICE/fix/fix-more

Fix/fix more
This commit is contained in:
Julia Radzhabova
2023-11-22 18:17:01 +03:00
committed by GitHub
8 changed files with 9 additions and 1 deletions

View File

@ -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([
'<a id="<%= id %>" class="menu-item">',
'<a id="<%= id %>" class="menu-item" tabindex="-1" type="menuitem">',
'<img class="menu-item-icon" src="<%= options.iconImg %>">',
'<%= caption %>',
'</a>'

View File

@ -333,6 +333,7 @@ define([
dataHintDirection: 'bottom',
dataHintOffset: 'small'
});
this.lockedControls.push(btn);
return btn;
},

View File

@ -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) {

View File

@ -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) {

View File

@ -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) {

View File

@ -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));

View File

@ -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) {

View File

@ -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) {