diff --git a/apps/documenteditor/main/app/controller/DocumentHolder.js b/apps/documenteditor/main/app/controller/DocumentHolder.js index 2438cd179f..c14f655b81 100644 --- a/apps/documenteditor/main/app/controller/DocumentHolder.js +++ b/apps/documenteditor/main/app/controller/DocumentHolder.js @@ -908,19 +908,23 @@ define([ var type = this.api.asc_getUrlType(url); if (type===AscCommon.c_oAscUrlType.Http || type===AscCommon.c_oAscUrlType.Email) window.open(url); - else - Common.UI.warning({ - msg: this.documentHolder.txtWarnUrl, - buttons: ['yes', 'no'], - primary: 'yes', - callback: function(btn) { - try { - (btn == 'yes') && window.open(url); - } catch (err) { - err && console.log(err.stack); + else { + var me = this; + setTimeout(function() { + Common.UI.warning({ + msg: me.documentHolder.txtWarnUrl, + buttons: ['yes', 'no'], + primary: 'yes', + callback: function(btn) { + try { + (btn == 'yes') && window.open(url); + } catch (err) { + err && console.log(err.stack); + } } - } - }); + }); + }, 1); + } } }, diff --git a/apps/pdfeditor/main/app/controller/DocumentHolder.js b/apps/pdfeditor/main/app/controller/DocumentHolder.js index 7c1f6b8b5f..15cf19fd9e 100644 --- a/apps/pdfeditor/main/app/controller/DocumentHolder.js +++ b/apps/pdfeditor/main/app/controller/DocumentHolder.js @@ -773,19 +773,23 @@ define([ var type = this.api.asc_getUrlType(url); if (type===AscCommon.c_oAscUrlType.Http || type===AscCommon.c_oAscUrlType.Email) window.open(url); - else - Common.UI.warning({ - msg: this.documentHolder.txtWarnUrl, - buttons: ['yes', 'no'], - primary: 'yes', - callback: function(btn) { - try { - (btn == 'yes') && window.open(url); - } catch (err) { - err && console.log(err.stack); + else { + var me = this; + setTimeout(function() { + Common.UI.warning({ + msg: me.documentHolder.txtWarnUrl, + buttons: ['yes', 'no'], + primary: 'yes', + callback: function(btn) { + try { + (btn == 'yes') && window.open(url); + } catch (err) { + err && console.log(err.stack); + } } - } - }); + }); + }, 1); + } } }, diff --git a/apps/presentationeditor/main/app/controller/DocumentHolder.js b/apps/presentationeditor/main/app/controller/DocumentHolder.js index 821231e193..b32bf2ee38 100644 --- a/apps/presentationeditor/main/app/controller/DocumentHolder.js +++ b/apps/presentationeditor/main/app/controller/DocumentHolder.js @@ -864,19 +864,23 @@ define([ var type = this.api.asc_getUrlType(url); if (type===AscCommon.c_oAscUrlType.Http || type===AscCommon.c_oAscUrlType.Email) window.open(url); - else - Common.UI.warning({ - msg: this.documentHolder.txtWarnUrl, - buttons: ['yes', 'no'], - primary: 'yes', - callback: function(btn) { - try { - (btn == 'yes') && window.open(url); - } catch (err) { - err && console.log(err.stack); + else { + var me = this; + setTimeout(function() { + Common.UI.warning({ + msg: me.documentHolder.txtWarnUrl, + buttons: ['yes', 'no'], + primary: 'yes', + callback: function(btn) { + try { + (btn == 'yes') && window.open(url); + } catch (err) { + err && console.log(err.stack); + } } - } - }); + }); + }, 1); + } } },