Merge pull request #604 from ONLYOFFICE/fix/data-validation

[SSE] Fix data validation
This commit is contained in:
Julia Radzhabova 2020-12-04 12:38:06 +03:00 committed by GitHub
commit 79f1f56e1d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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(){