]> git.wh0rd.org - tt-rss.git/commitdiff
make sure reset password notification does not hide automatically; add manual close...
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Mon, 18 Mar 2013 12:44:23 +0000 (16:44 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Mon, 18 Mar 2013 12:44:23 +0000 (16:44 +0400)
js/functions.js
js/prefs.js

index e00690c1c2e6130f3372764d37204dd695fbf9d7..be78294df0d22a149668d24e2c8a6144aa9050ef 100644 (file)
@@ -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) {
index 676fb914ae196b636f7ca9935df48746175ea359..e6257e1fb261f4b3f7077962c123ce4d2085f6fa 100644 (file)
@@ -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);
                                } });
 
                }