summaryrefslogtreecommitdiffstats
path: root/modules-available/dozmod/templates
diff options
context:
space:
mode:
authorChristian Klinger2016-08-02 17:23:07 +0200
committerChristian Klinger2016-08-02 17:23:07 +0200
commit73cbe5650b57323a17c84aceace12623bd36b8d7 (patch)
tree073cd37502eeedf5f25b4253f2e2577ef8c2fc1d /modules-available/dozmod/templates
parentadded JS animation to show a successful save. (diff)
downloadslx-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/templates')
-rw-r--r--modules-available/dozmod/templates/userlist.html11
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;