From 7c0eb1b6210a019926ec69179c81d545ac865b64 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sun, 3 Dec 2017 20:46:27 +0300 Subject: add defaultPasswordWarning nag dialog --- js/feedlist.js | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'js/feedlist.js') diff --git a/js/feedlist.js b/js/feedlist.js index 887d84453..d9bc0a0c9 100644 --- a/js/feedlist.js +++ b/js/feedlist.js @@ -198,6 +198,28 @@ function feedlist_init() { hideOrShowFeeds(getInitParam("hide_read_feeds") == 1); + if (getInitParam("is_default_pw")) { + console.warn("user password is at default value"); + + var dialog = new dijit.Dialog({ + title: __("Your password is at default value"), + href: "backend.php?op=dlg&method=defaultpasswordwarning", + id: 'infoBox', + style: "width: 600px", + onCancel: function() { + return true; + }, + onExecute: function() { + return true; + }, + onClose: function() { + return true; + } + }); + + dialog.show(); + } + // bw_limit disables timeout() so we request initial counters separately if (getInitParam("bw_limit") == "1") { request_counters(true); -- cgit v1.2.3