diff --git a/apps/spreadsheeteditor/main/app/view/CellRangeDialog.js b/apps/spreadsheeteditor/main/app/view/CellRangeDialog.js index d1f5a5d19..32aea4bcb 100644 --- a/apps/spreadsheeteditor/main/app/view/CellRangeDialog.js +++ b/apps/spreadsheeteditor/main/app/view/CellRangeDialog.js @@ -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(), diff --git a/apps/spreadsheeteditor/main/app/view/TableOptionsDialog.js b/apps/spreadsheeteditor/main/app/view/TableOptionsDialog.js index 065dbd94d..ff2a53ef0 100644 --- a/apps/spreadsheeteditor/main/app/view/TableOptionsDialog.js +++ b/apps/spreadsheeteditor/main/app/view/TableOptionsDialog.js @@ -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;