make sure reset password notification does not hide automatically; add manual close link to persistent notifications (closes #569)

This commit is contained in:
Andrew Dolgov 2013-03-18 16:44:23 +04:00
parent 11191fdba1
commit 478d406767
2 changed files with 6 additions and 1 deletions

View 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) {

View 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);
} });
}