diff options
author | Andrew Dolgov <[email protected]> | 2017-12-03 20:46:27 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2017-12-03 20:46:27 +0300 |
commit | 7c0eb1b6210a019926ec69179c81d545ac865b64 (patch) | |
tree | 8c57ea7b438156fbbebb880926e73e18e2137453 /js | |
parent | 31e2811a637b1062eafc15a2f3b3b84de9534a0e (diff) |
add defaultPasswordWarning nag dialog
Diffstat (limited to 'js')
-rw-r--r-- | js/feedlist.js | 22 |
1 files changed, 22 insertions, 0 deletions
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); |