Commit 5b561201 authored by Julia Radzhabova's avatar Julia Radzhabova

[SSE] дополнение к багу 32505 (не обрабатывать событие asc_onSelectionChanged,...

[SSE] дополнение к багу 32505 (не обрабатывать событие asc_onSelectionChanged, если находимся в режиме выделения диапазона ячеек)
parent 9a62ce12
......@@ -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
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment