diff options
author | Christian Klinger | 2016-08-02 17:23:07 +0200 |
---|---|---|
committer | Christian Klinger | 2016-08-02 17:23:07 +0200 |
commit | 73cbe5650b57323a17c84aceace12623bd36b8d7 (patch) | |
tree | 073cd37502eeedf5f25b4253f2e2577ef8c2fc1d /modules-available/dozmod | |
parent | added JS animation to show a successful save. (diff) | |
download | slx-admin-73cbe5650b57323a17c84aceace12623bd36b8d7.tar.gz slx-admin-73cbe5650b57323a17c84aceace12623bd36b8d7.tar.xz slx-admin-73cbe5650b57323a17c84aceace12623bd36b8d7.zip |
... and the same for the userlist.
Diffstat (limited to 'modules-available/dozmod')
-rw-r--r-- | modules-available/dozmod/templates/userlist.html | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/modules-available/dozmod/templates/userlist.html b/modules-available/dozmod/templates/userlist.html index 3ccff4d9..79d4848b 100644 --- a/modules-available/dozmod/templates/userlist.html +++ b/modules-available/dozmod/templates/userlist.html @@ -51,6 +51,17 @@ function setu(action, el, uid) { } else { el.checked = (data == 1); } + /* show success notification */ + $notification = $('<span></span>') + .addClass('glyphicon glyphicon-saved') + .css('color', '#2ecc71') + .css('width', '0px') + .css('position', 'relative') + .css('right', '20px') + .hide(); + box.before($notification); + $notification.fadeIn('slow', function () {$notification.fadeOut('fast');}); + box.css('display', ''); }).fail(function() { el.checked = !old; |