From ea53ab8db5eba91803e9c1922fe0ce4e3402b7f8 Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Fri, 9 Dec 2022 12:02:46 +0300 Subject: [PATCH] [SSE] Use Asc.c_oAscSelectionDialogType.ImportXml --- apps/spreadsheeteditor/main/app/view/ImportFromXmlDialog.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/spreadsheeteditor/main/app/view/ImportFromXmlDialog.js b/apps/spreadsheeteditor/main/app/view/ImportFromXmlDialog.js index 5e4a098093..ac3edc6f58 100644 --- a/apps/spreadsheeteditor/main/app/view/ImportFromXmlDialog.js +++ b/apps/spreadsheeteditor/main/app/view/ImportFromXmlDialog.js @@ -158,7 +158,7 @@ define([ _setDefaults: function () { var me = this; this.txtDestRange.validation = function(value) { - var isvalid = me.api.asc_checkDataRange(Asc.c_oAscSelectionDialogType.PivotTableReport, value, false); + var isvalid = me.api.asc_checkDataRange(Asc.c_oAscSelectionDialogType.ImportXml, value, false); return (isvalid==Asc.c_oAscError.ID.DataRangeError) ? me.textInvalidRange : true; }; var range = this.api.asc_getActiveRangeStr(Asc.referenceType.A); @@ -181,7 +181,7 @@ define([ isvalid = false; txtError = this.txtEmpty; } else { - isvalid = this.api.asc_checkDataRange(Asc.c_oAscSelectionDialogType.PivotTableReport, this.txtDestRange.getValue()); + isvalid = this.api.asc_checkDataRange(Asc.c_oAscSelectionDialogType.ImportXml, this.txtDestRange.getValue()); isvalid = (isvalid == Asc.c_oAscError.ID.No); !isvalid && (txtError = this.textInvalidRange); } @@ -224,7 +224,7 @@ define([ win.setSettings({ api : me.api, range : (!_.isEmpty(txtRange.getValue()) && (txtRange.checkValidate()==true)) ? txtRange.getValue() : me.dataDestValid, - type : Asc.c_oAscSelectionDialogType.PivotTableReport + type : Asc.c_oAscSelectionDialogType.ImportXml }); } },