From 478d406767e42b56a140f229fd8676c03ba5afe1 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 18 Mar 2013 16:44:23 +0400 Subject: [PATCH] make sure reset password notification does not hide automatically; add manual close link to persistent notifications (closes #569) --- js/functions.js | 5 +++++ js/prefs.js | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/js/functions.js b/js/functions.js index e00690c1..be78294d 100644 --- a/js/functions.js +++ b/js/functions.js @@ -212,6 +212,11 @@ function notify_real(msg, no_hide, n_type) { // msg = " " + msg; + if (no_hide) { + msg += " (X)"; + } + + nb.innerHTML = msg; if (!no_hide) { diff --git a/js/prefs.js b/js/prefs.js index 676fb914..e6257e1f 100644 --- a/js/prefs.js +++ b/js/prefs.js @@ -547,7 +547,7 @@ function resetSelectedUserPass() { new Ajax.Request("backend.php", { parameters: query, onComplete: function(transport) { - notify_info(transport.responseText); + notify_info(transport.responseText, true); } }); } -- 2.39.2