diff --git a/apps/spreadsheeteditor/main/app/view/CellRangeDialog.js b/apps/spreadsheeteditor/main/app/view/CellRangeDialog.js index 8bc2fa066f..d3a03020d8 100644 --- a/apps/spreadsheeteditor/main/app/view/CellRangeDialog.js +++ b/apps/spreadsheeteditor/main/app/view/CellRangeDialog.js @@ -168,6 +168,8 @@ define([ this.settings.argvalues[this.settings.argindex] = val; this.api.asc_insertArgumentsInFormula(this.settings.argvalues); + } else if (this.settings.type == Asc.c_oAscSelectionDialogType.DataValidation) { + this.inputRange.setValue('=' + name); } else this.inputRange.setValue(name); if (this.inputRange.cmpEl.hasClass('error')) diff --git a/apps/spreadsheeteditor/main/app/view/DataValidationDialog.js b/apps/spreadsheeteditor/main/app/view/DataValidationDialog.js index 975c5abe1d..8cf8100fb2 100644 --- a/apps/spreadsheeteditor/main/app/view/DataValidationDialog.js +++ b/apps/spreadsheeteditor/main/app/view/DataValidationDialog.js @@ -321,7 +321,7 @@ define([ 'text!spreadsheeteditor/main/app/template/DataValidationDialog.templ win.setSettings({ api : me.api, range : input.getValue(), - type : Asc.c_oAscSelectionDialogType.Chart, + type : Asc.c_oAscSelectionDialogType.DataValidation, validation: function() {return true;} }); }