[SSE] Fix rev. 14bd0891461f3bb207c3f0a366322bfa3835ecce: "Don't listen change selection events when modal dialog is visible"

This commit is contained in:
Julia Radzhabova 2019-06-06 11:27:17 +03:00
parent 2303266c74
commit 3d61c73aa2

View file

@ -1662,7 +1662,7 @@ define([
},
onApiEditCell: function(state) {
if (this.getApplication().getController('Main').isModalShowed) return;
if ($('.asc-window.enable-key-events:visible').length>0) return;
var toolbar = this.toolbar;
if (toolbar.mode.isEditDiagram || toolbar.mode.isEditMailMerge) {
@ -1798,7 +1798,7 @@ define([
},
onApiEditorSelectionChanged: function(fontobj) {
if (!this.editMode || this.getApplication().getController('Main').isModalShowed) return;
if (!this.editMode || $('.asc-window.enable-key-events:visible').length>0) return;
var toolbar = this.toolbar,
val;
@ -1904,7 +1904,7 @@ define([
},
onApiSelectionChanged: function(info) {
if (!this.editMode || this.getApplication().getController('Main').isModalShowed) return;
if (!this.editMode || $('.asc-window.enable-key-events:visible').length>0) return;
if ( this.toolbar.mode.isEditDiagram )
return this.onApiSelectionChanged_DiagramEditor(info); else
if ( this.toolbar.mode.isEditMailMerge )