Fix Bug 58266

This commit is contained in:
Julia Radzhabova 2022-07-25 23:29:49 +03:00
parent e3499ad0b4
commit 8ed062a35d

View file

@ -208,14 +208,16 @@ define([
var me = this; var me = this;
var str = this.api.asc_GetErrorForReplaceString(textReplace); var str = this.api.asc_GetErrorForReplaceString(textReplace);
if (str) { if (str) {
Common.UI.warning({ setTimeout(function() {
title: this.notcriticalErrorTitle, Common.UI.warning({
msg: Common.Utils.String.format(this.warnReplaceString, str), title: me.notcriticalErrorTitle,
buttons: ['ok'], msg: Common.Utils.String.format(me.warnReplaceString, str),
callback: function(){ buttons: ['ok'],
me.view.focus('replace'); callback: function(){
} me.view.focus('replace');
}); }
});
}, 1);
return; return;
} }
@ -234,14 +236,16 @@ define([
var me = this; var me = this;
var str = this.api.asc_GetErrorForReplaceString(textReplace); var str = this.api.asc_GetErrorForReplaceString(textReplace);
if (str) { if (str) {
Common.UI.warning({ setTimeout(function() {
title: this.notcriticalErrorTitle, Common.UI.warning({
msg: Common.Utils.String.format(this.warnReplaceString, str), title: me.notcriticalErrorTitle,
buttons: ['ok'], msg: Common.Utils.String.format(me.warnReplaceString, str),
callback: function(){ buttons: ['ok'],
me.view.focus('replace'); callback: function(){
} me.view.focus('replace');
}); }
});
}, 1);
return; return;
} }