diff options
Diffstat (limited to 'modules/gallery/views/admin_sidebar.html.php')
| -rw-r--r-- | modules/gallery/views/admin_sidebar.html.php | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/modules/gallery/views/admin_sidebar.html.php b/modules/gallery/views/admin_sidebar.html.php index 67752f75..7c97270c 100644 --- a/modules/gallery/views/admin_sidebar.html.php +++ b/modules/gallery/views/admin_sidebar.html.php @@ -21,10 +21,12 @@ if (data.result == "success") { $("ul#g-available-blocks").html(data.available); $("ul#g-active-blocks").html(data.active); - var message = <?= t("Updated blocks")->for_js() ?>; $("#g-action-status").remove(); - $("#g-block-admin").before("<ul id=\"g-action-status\" class=\"g-message-block\"><li class=\"g-success\">" + message + "</li></ul>"); - $("#g-action-status").fadeTo(1000,1).fadeTo(2000,0); + var message = "<ul id=\"g-action-status\" class=\"g-message-block\">"; + message += "<li class=\"g-success\">" + data.message + "</li>"; + message += "</ul>"; + $("#g-block-admin").before(message); + $("#g-action-status li").gallery_show_message(); } }); } |
