mirror of
https://github.com/ONLYOFFICE/web-apps.git
synced 2026-02-10 18:05:32 +08:00
Fix Bug 76507
This commit is contained in:
@ -667,9 +667,9 @@ VE.ApplicationController = new(function(){
|
||||
WarningShown = true;
|
||||
common.controller.modals.showWarning({
|
||||
title: me.notcriticalErrorTitle,
|
||||
message: me.txtOpenWarning,
|
||||
buttons: [me.txtYes, me.txtNo],
|
||||
primary: me.txtYes,
|
||||
message: me.txtOpenWarning.replace('%1', url || ''),
|
||||
buttons: [me.txtNo, me.txtYes],
|
||||
primary: me.txtNo,
|
||||
callback: function (btn) {
|
||||
WarningShown = false;
|
||||
if (btn === me.txtYes) {
|
||||
@ -973,7 +973,7 @@ VE.ApplicationController = new(function(){
|
||||
errorToken: 'The document security token is not correctly formed.<br>Please contact your Document Server administrator.',
|
||||
txtPressLink: 'Click the link to open it',
|
||||
txtPage: 'Page',
|
||||
txtOpenWarning: "Clicking this link can be harmful to your device and data.<br> Are you sure you want to continue?",
|
||||
txtOpenWarning: 'Clicking this link can be harmful to your device and data.To protect you computer, click only those hyperlinks from trusted sources. This location may be unsafe:<br>%1<br>Are you sure you want to continue?',
|
||||
txtYes:'Yes',
|
||||
txtNo: 'No'
|
||||
}
|
||||
|
||||
@ -40,7 +40,7 @@
|
||||
"VE.ApplicationController.titleLicenseNotActive": "License not active",
|
||||
"VE.ApplicationController.txtClose": "Close",
|
||||
"VE.ApplicationController.txtNo": "No",
|
||||
"VE.ApplicationController.txtOpenWarning": "Clicking this link can be harmful to your device and data.<br> Are you sure you want to continue?",
|
||||
"VE.ApplicationController.txtOpenWarning": "Clicking this link can be harmful to your device and data.To protect you computer, click only those hyperlinks from trusted sources. This location may be unsafe:<br>%1<br>Are you sure you want to continue?",
|
||||
"VE.ApplicationController.txtPage": "Page",
|
||||
"VE.ApplicationController.txtPressLink": "Click the link to open it",
|
||||
"VE.ApplicationController.txtYes": "Yes",
|
||||
|
||||
@ -398,9 +398,10 @@ define([
|
||||
var me = this;
|
||||
setTimeout(function() {
|
||||
Common.UI.warning({
|
||||
msg: me.documentHolder.txtWarnUrl,
|
||||
buttons: ['yes', 'no'],
|
||||
primary: 'yes',
|
||||
maxwidth: 500,
|
||||
msg: Common.Utils.String.format(this.txtWarnUrl, url),
|
||||
buttons: ['no', 'yes'],
|
||||
primary: 'no',
|
||||
callback: function(btn) {
|
||||
try {
|
||||
(btn == 'yes') && window.open(url);
|
||||
|
||||
@ -316,7 +316,7 @@
|
||||
"VE.Views.DocumentHolder.guestText": "Guest",
|
||||
"VE.Views.DocumentHolder.textCopy": "Copy",
|
||||
"VE.Views.DocumentHolder.txtPressLink": "Press {0} and click link",
|
||||
"VE.Views.DocumentHolder.txtWarnUrl": "Clicking this link can be harmful to your device and data.<br>Are you sure you want to continue?",
|
||||
"VE.Views.DocumentHolder.txtWarnUrl": "Clicking this link can be harmful to your device and data.To protect you computer, click only those hyperlinks from trusted sources. This location may be unsafe:<br><br>{0}<br><br>Are you sure you want to continue?",
|
||||
"VE.Views.FileMenu.ariaFileMenu": "File menu",
|
||||
"VE.Views.FileMenu.btnBackCaption": "Open File Location",
|
||||
"VE.Views.FileMenu.btnCloseEditor": "Close File",
|
||||
|
||||
@ -30,7 +30,7 @@
|
||||
"ContextMenu": {
|
||||
"menuCancel": "Cancel",
|
||||
"textOk": "Ok",
|
||||
"txtWarnUrl": "Clicking this link can be harmful to your device and data.<br>Are you sure you want to continue?"
|
||||
"txtWarnUrl": "Clicking this link can be harmful to your device and data. This location may be unsafe:<br>{0}<br>Are you sure you want to continue?"
|
||||
},
|
||||
"Controller": {
|
||||
"Main": {
|
||||
|
||||
@ -83,8 +83,10 @@ class ContextMenu extends ContextMenuController {
|
||||
const _t = t("ContextMenu", { returnObjects: true });
|
||||
f7.dialog.create({
|
||||
title: t('View.Settings', {returnObjects: true}).notcriticalErrorTitle,
|
||||
text : _t.txtWarnUrl,
|
||||
buttons: [{
|
||||
text : _t.txtWarnUrl.replaceAll('{0}', url),
|
||||
buttons: [
|
||||
{ text: _t.menuCancel, bold: true },
|
||||
{
|
||||
text: t('View.Settings', {returnObjects: true}).textOk,
|
||||
bold: true,
|
||||
onClick: () => {
|
||||
@ -93,8 +95,7 @@ class ContextMenu extends ContextMenuController {
|
||||
newDocumentPage.focus();
|
||||
}
|
||||
}
|
||||
},
|
||||
{ text: _t.menuCancel }]
|
||||
}]
|
||||
}).open();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user