diff --git a/apps/spreadsheeteditor/main/app/controller/RightMenu.js b/apps/spreadsheeteditor/main/app/controller/RightMenu.js index 8096a8a69..dc61d8f92 100644 --- a/apps/spreadsheeteditor/main/app/controller/RightMenu.js +++ b/apps/spreadsheeteditor/main/app/controller/RightMenu.js @@ -85,6 +85,7 @@ define([ this.api = api; this.api.asc_registerCallback('asc_onCoAuthoringDisconnect',_.bind(this.onCoAuthoringDisconnect, this)); Common.NotificationCenter.on('api:disconnect', _.bind(this.onCoAuthoringDisconnect, this)); + Common.NotificationCenter.on('cells:range', _.bind(this.onCellsRange, this)); }, setMode: function(mode) { @@ -103,6 +104,8 @@ define([ }, onSelectionChanged: function(info) { + if (this.rangeSelectionMode) return; + var SelectedObjects = [], selectType = info.asc_getFlags().asc_getSelectionType(), formatTableInfo = info.asc_getFormatTableInfo(); @@ -318,6 +321,10 @@ define([ this.onSelectionChanged(this.api.asc_getCellInfo()); } } + }, + + onCellsRange: function(status) { + this.rangeSelectionMode = (status != Asc.c_oAscSelectionDialogType.None); } }); }); \ No newline at end of file