diff --git a/apps/documenteditor/main/app/controller/Search.js b/apps/documenteditor/main/app/controller/Search.js index 4d2527082..31d3f63e0 100644 --- a/apps/documenteditor/main/app/controller/Search.js +++ b/apps/documenteditor/main/app/controller/Search.js @@ -208,14 +208,16 @@ define([ var me = this; var str = this.api.asc_GetErrorForReplaceString(textReplace); if (str) { - Common.UI.warning({ - title: this.notcriticalErrorTitle, - msg: Common.Utils.String.format(this.warnReplaceString, str), - buttons: ['ok'], - callback: function(){ - me.view.focus('replace'); - } - }); + setTimeout(function() { + Common.UI.warning({ + title: me.notcriticalErrorTitle, + msg: Common.Utils.String.format(me.warnReplaceString, str), + buttons: ['ok'], + callback: function(){ + me.view.focus('replace'); + } + }); + }, 1); return; } @@ -234,14 +236,16 @@ define([ var me = this; var str = this.api.asc_GetErrorForReplaceString(textReplace); if (str) { - Common.UI.warning({ - title: this.notcriticalErrorTitle, - msg: Common.Utils.String.format(this.warnReplaceString, str), - buttons: ['ok'], - callback: function(){ - me.view.focus('replace'); - } - }); + setTimeout(function() { + Common.UI.warning({ + title: me.notcriticalErrorTitle, + msg: Common.Utils.String.format(me.warnReplaceString, str), + buttons: ['ok'], + callback: function(){ + me.view.focus('replace'); + } + }); + }, 1); return; }