Merge pull request #1650 from ONLYOFFICE/fix/bugfix

Fix open diagram editor (when right panel in sse is closed)
This commit is contained in:
Julia Radzhabova 2022-03-24 14:27:55 +03:00 committed by GitHub
commit 00ca582bc5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 9 additions and 5 deletions

View file

@ -444,6 +444,8 @@ define([
},
onAddChartStylesPreview: function(styles){
if (!this.cmbChartStyle) return;
var me = this;
if (styles && styles.length>0){
var stylesStore = this.cmbChartStyle.menuPicker.store;

View file

@ -794,9 +794,9 @@ define([
});
if (this._state.beginPreviewStyles) {
this._state.beginPreviewStyles = false;
self.mnuTableTemplatePicker.store.reset(arr);
self.mnuTableTemplatePicker && self.mnuTableTemplatePicker.store.reset(arr);
} else
self.mnuTableTemplatePicker.store.add(arr);
self.mnuTableTemplatePicker && self.mnuTableTemplatePicker.store.add(arr);
!this._state.currentStyleFound && this.selectCurrentTableStyle();
},

View file

@ -385,6 +385,8 @@ define([
},
onAddChartStylesPreview: function(styles){
if (!this.cmbChartStyle) return;
var me = this;
if (styles && styles.length>0){
var stylesStore = this.cmbChartStyle.menuPicker.store;

View file

@ -726,9 +726,9 @@ define([
});
if (this._state.beginPreviewStyles) {
this._state.beginPreviewStyles = false;
self.mnuTableTemplatePicker.store.reset(arr);
self.mnuTableTemplatePicker && self.mnuTableTemplatePicker.store.reset(arr);
} else
self.mnuTableTemplatePicker.store.add(arr);
self.mnuTableTemplatePicker && self.mnuTableTemplatePicker.store.add(arr);
!this._state.currentStyleFound && this.selectCurrentTableStyle();
},

View file

@ -994,7 +994,7 @@ define([
},
onAddChartStylesPreview: function(styles){
if (this._isEditType) return;
if (this._isEditType || !this.cmbChartStyle) return;
if (styles && styles.length>0){
var stylesStore = this.cmbChartStyle.menuPicker.store;