[SSE] Change data range selection

This commit is contained in:
Julia Radzhabova 2020-05-15 19:09:36 +03:00
parent 4c27ca8b92
commit 4dc6c6bfc9
2 changed files with 6 additions and 5 deletions

View file

@ -146,8 +146,7 @@ define([
return this.inputRange.getValue();
},
onApiRangeChanged: function(info) {
var name = info.asc_getName();
onApiRangeChanged: function(name) {
if (this.type == Asc.c_oAscSelectionDialogType.Function) {
var oldlen = this._addedTextLength || 0,
val = this.inputRange.getValue(),

View file

@ -149,11 +149,10 @@ define([
return { selectionType: this.selectionType, range: this.inputRange.getValue()};
},
onApiRangeChanged: function(info) {
this.inputRange.setValue(info.asc_getName());
onApiRangeChanged: function(name) {
this.inputRange.setValue(name);
if (this.inputRange.cmpEl.hasClass('error'))
this.inputRange.cmpEl.removeClass('error');
this.selectionType = info.asc_getType();
},
isRangeValid: function() {
@ -174,6 +173,9 @@ define([
case Asc.c_oAscError.ID.MultiCellsInTablesFormulaArray:
Common.UI.warning({msg: this.errorMultiCellFormula});
break;
case Asc.c_oAscError.ID.LargeRangeWarning:
this.selectionType = Asc.c_oAscSelectionType.RangeMax;
return true;
}
}
return false;