Merge pull request #3050 from ONLYOFFICE/fix/bugfix

Fix Bug 68515
This commit is contained in:
Julia Radzhabova
2024-06-10 15:25:19 +03:00
committed by GitHub
3 changed files with 48 additions and 36 deletions

View File

@ -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);
}
}
},

View File

@ -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);
}
}
},

View File

@ -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);
}
}
},