Fix Bug 76507

This commit is contained in:
Julia.Radzhabova
2025-09-11 16:49:42 +03:00
parent c2e310ec63
commit 0f8584c230
26 changed files with 87 additions and 61 deletions

View File

@ -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'
}

View File

@ -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",

View File

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

View File

@ -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",

View 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": {

View File

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