[SSE] Change data range selection
This commit is contained in:
parent
4c27ca8b92
commit
4dc6c6bfc9
|
@ -146,8 +146,7 @@ define([
|
||||||
return this.inputRange.getValue();
|
return this.inputRange.getValue();
|
||||||
},
|
},
|
||||||
|
|
||||||
onApiRangeChanged: function(info) {
|
onApiRangeChanged: function(name) {
|
||||||
var name = info.asc_getName();
|
|
||||||
if (this.type == Asc.c_oAscSelectionDialogType.Function) {
|
if (this.type == Asc.c_oAscSelectionDialogType.Function) {
|
||||||
var oldlen = this._addedTextLength || 0,
|
var oldlen = this._addedTextLength || 0,
|
||||||
val = this.inputRange.getValue(),
|
val = this.inputRange.getValue(),
|
||||||
|
|
|
@ -149,11 +149,10 @@ define([
|
||||||
return { selectionType: this.selectionType, range: this.inputRange.getValue()};
|
return { selectionType: this.selectionType, range: this.inputRange.getValue()};
|
||||||
},
|
},
|
||||||
|
|
||||||
onApiRangeChanged: function(info) {
|
onApiRangeChanged: function(name) {
|
||||||
this.inputRange.setValue(info.asc_getName());
|
this.inputRange.setValue(name);
|
||||||
if (this.inputRange.cmpEl.hasClass('error'))
|
if (this.inputRange.cmpEl.hasClass('error'))
|
||||||
this.inputRange.cmpEl.removeClass('error');
|
this.inputRange.cmpEl.removeClass('error');
|
||||||
this.selectionType = info.asc_getType();
|
|
||||||
},
|
},
|
||||||
|
|
||||||
isRangeValid: function() {
|
isRangeValid: function() {
|
||||||
|
@ -174,6 +173,9 @@ define([
|
||||||
case Asc.c_oAscError.ID.MultiCellsInTablesFormulaArray:
|
case Asc.c_oAscError.ID.MultiCellsInTablesFormulaArray:
|
||||||
Common.UI.warning({msg: this.errorMultiCellFormula});
|
Common.UI.warning({msg: this.errorMultiCellFormula});
|
||||||
break;
|
break;
|
||||||
|
case Asc.c_oAscError.ID.LargeRangeWarning:
|
||||||
|
this.selectionType = Asc.c_oAscSelectionType.RangeMax;
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in a new issue