[SSE] Fix bug with selecting data range.

This commit is contained in:
Julia Radzhabova 2016-09-29 13:36:11 +03:00
parent e7ad410744
commit 24c332b914
2 changed files with 5 additions and 5 deletions

View file

@ -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;

View file

@ -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
});
}
},