[SSE] Fix bug with selecting data range.
This commit is contained in:
parent
e7ad410744
commit
24c332b914
|
@ -119,8 +119,8 @@ define([
|
|||
}
|
||||
|
||||
me.inputRange.validation = function(value) {
|
||||
if (me.options.validation) {
|
||||
return me.options.validation.call(me, value);
|
||||
if (settings.validation) {
|
||||
return settings.validation.call(me, value);
|
||||
} else {
|
||||
var isvalid = me.api.asc_checkDataRange(Asc.c_oAscSelectionDialogType.Chart, value, false);
|
||||
return (isvalid==Asc.c_oAscError.ID.DataRangeError) ? me.txtInvalidRange : true;
|
||||
|
|
|
@ -417,14 +417,14 @@ define([
|
|||
};
|
||||
|
||||
var win = new SSE.Views.CellRangeDialog({
|
||||
handler: handlerDlg,
|
||||
validation: validation
|
||||
handler: handlerDlg
|
||||
});
|
||||
|
||||
win.show();
|
||||
win.setSettings({
|
||||
api : me.api,
|
||||
range : props.getRange()
|
||||
range : props.getRange(),
|
||||
validation: validation
|
||||
});
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue