Merge pull request #1650 from ONLYOFFICE/fix/bugfix
Fix open diagram editor (when right panel in sse is closed)
This commit is contained in:
commit
00ca582bc5
|
@ -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;
|
||||
|
|
|
@ -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();
|
||||
},
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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();
|
||||
},
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue