From 1a680d4eae7a5a6adb856f4db8adaa04ea4d64e3 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 11 Feb 2021 21:42:38 +0300 Subject: publishedOPML: use client dialog --- js/Feeds.js | 47 ++++++++++++++++++++++++++++------------------- 1 file changed, 28 insertions(+), 19 deletions(-) (limited to 'js/Feeds.js') diff --git a/js/Feeds.js b/js/Feeds.js index 64e932ca2..1e476dd98 100644 --- a/js/Feeds.js +++ b/js/Feeds.js @@ -226,25 +226,34 @@ const Feeds = { if (dijit.byId("defaultPasswordDlg")) dijit.byId("defaultPasswordDlg").destroyRecursive(); - xhrPost("backend.php", {op: 'dlg', method: 'defaultpasswordwarning'}, (transport) => { - const dialog = new dijit.Dialog({ - title: __("Your password is at default value"), - content: transport.responseText, - id: 'defaultPasswordDlg', - style: "width: 600px", - onCancel: function () { - return true; - }, - onExecute: function () { - return true; - }, - onClose: function () { - return true; - } - }); - - dialog.show(); + const dialog = new dijit.Dialog({ + title: __("Your password is at default value"), + content: `
+ ${__("You are using default tt-rss password. Please change it in the Preferences (Personal data / Authentication).")} +
+ + `, + id: 'defaultPasswordDlg', + style: "width: 600px", + onCancel: function () { + return true; + }, + onExecute: function () { + return true; + }, + onClose: function () { + return true; + } }); + + dialog.show(); } if (dijit.byId("safeModeDlg")) @@ -258,7 +267,7 @@ const Feeds = { ${__('Tiny Tiny RSS is running in safe mode. All themes and plugins are disabled. You will need to log out and back in to disable it.')} -- cgit v1.2.3-54-g00ecf