Commit 24c332b9 authored by Julia Radzhabova's avatar Julia Radzhabova

[SSE] Fix bug with selecting data range.

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