mirror of
https://github.com/ONLYOFFICE/web-apps.git
synced 2026-07-24 05:57:18 +08:00
[DE] Fix Bug 66503
This commit is contained in:
@ -595,6 +595,14 @@ define([
|
||||
}
|
||||
},
|
||||
|
||||
clearActiveData: function(tab) {
|
||||
var panel = tab ? this.$panels.filter('[data-tab=' + tab + ']') : this.$panels.filter('.active');
|
||||
if ( panel.length ) {
|
||||
var data = panel.data();
|
||||
data.buttons = data.flex = data.rightedge = data.leftedge = undefined;
|
||||
}
|
||||
},
|
||||
|
||||
resizeToolbar: function(reset) {
|
||||
var $active = this.$panels.filter('.active'),
|
||||
more_section = $active.find('.more-box');
|
||||
|
||||
@ -291,6 +291,8 @@ define([
|
||||
this.api.asc_SetPerformContentControlActionByClick(state);
|
||||
this.api.asc_SetHighlightRequiredFields(state);
|
||||
state && (this._state.lastViewRole = lastViewRole);
|
||||
this.toolbar.toolbar.clearActiveData();
|
||||
this.toolbar.toolbar.processPanelVisible(null, true);
|
||||
}
|
||||
Common.NotificationCenter.trigger('edit:complete', this.toolbar);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user