From 48b0079c61e454f56e2b756773179c63c0b7593f Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Fri, 4 Dec 2020 12:34:27 +0300 Subject: [PATCH] [SSE] Fix data validation --- apps/spreadsheeteditor/main/app/controller/DataTab.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/spreadsheeteditor/main/app/controller/DataTab.js b/apps/spreadsheeteditor/main/app/controller/DataTab.js index ec9ba878d..ff9de160d 100644 --- a/apps/spreadsheeteditor/main/app/controller/DataTab.js +++ b/apps/spreadsheeteditor/main/app/controller/DataTab.js @@ -323,9 +323,9 @@ define([ var config = { maxwidth: 500, title: this.txtDataValidation, - msg: res===Asc.c_oAscError.ID.MoreOneTypeDataValidate ? this.txtExtendDataValidation : this.txtRemoveDataValidation, - buttons: res===Asc.c_oAscError.ID.MoreOneTypeDataValidate ? ['yes', 'no', 'cancel'] : ['ok', 'cancel'], - primary: res===Asc.c_oAscError.ID.MoreOneTypeDataValidate ? ['yes', 'no'] : 'ok', + msg: res===Asc.c_oAscError.ID.MoreOneTypeDataValidate ? this.txtRemoveDataValidation : this.txtExtendDataValidation, + buttons: res===Asc.c_oAscError.ID.MoreOneTypeDataValidate ? ['ok', 'cancel'] : ['yes', 'no', 'cancel'], + primary: res===Asc.c_oAscError.ID.MoreOneTypeDataValidate ? 'ok' : ['yes', 'no'], callback: function(btn){ if (btn == 'yes' || btn == 'no' || btn == 'ok') { setTimeout(function(){