From 4dc6c6bfc95e9451695383c1babe7049c57c8e9a Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Fri, 15 May 2020 19:09:36 +0300 Subject: [PATCH] [SSE] Change data range selection --- apps/spreadsheeteditor/main/app/view/CellRangeDialog.js | 3 +-- .../spreadsheeteditor/main/app/view/TableOptionsDialog.js | 8 +++++--- 2 files changed, 6 insertions(+), 5 deletions(-) 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;