summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2013-03-18 16:44:23 +0400
committerAndrew Dolgov <[email protected]>2013-03-18 16:44:23 +0400
commit478d406767e42b56a140f229fd8676c03ba5afe1 (patch)
treeba99c80fd91698c2893d9c4be8b7a2d0462dae9b
parent11191fdba1e7e986b8c144394943e44ccac053f0 (diff)
make sure reset password notification does not hide automatically; add manual close link to persistent notifications (closes #569)
-rw-r--r--js/functions.js5
-rw-r--r--js/prefs.js2
2 files changed, 6 insertions, 1 deletions
diff --git a/js/functions.js b/js/functions.js
index e00690c1c..be78294df 100644
--- a/js/functions.js
+++ b/js/functions.js
@@ -212,6 +212,11 @@ function notify_real(msg, no_hide, n_type) {
// msg = "<img src='images/live_com_loading.gif'> " + msg;
+ if (no_hide) {
+ msg += " (<a href='#' onclick=\"notify('')\">X</a>)";
+ }
+
+
nb.innerHTML = msg;
if (!no_hide) {
diff --git a/js/prefs.js b/js/prefs.js
index 676fb914a..e6257e1fb 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);
} });
}