diff options
author | Christian Hofmaier | 2017-10-27 16:49:13 +0200 |
---|---|---|
committer | Christian Hofmaier | 2017-10-27 16:49:13 +0200 |
commit | f8778f213cb9f916fa56279c9e1cf6deb067b35c (patch) | |
tree | 4d951d85dab1a015ef120f189a229ed734f1ce32 /modules-available/dozmod/templates/userlist.html | |
parent | [internetaccess] user is now checked if he's logged in before he can access t... (diff) | |
download | slx-admin-f8778f213cb9f916fa56279c9e1cf6deb067b35c.tar.gz slx-admin-f8778f213cb9f916fa56279c9e1cf6deb067b35c.tar.xz slx-admin-f8778f213cb9f916fa56279c9e1cf6deb067b35c.zip |
[dozmod] implemented new permission system to module for: deleting expired vm versions, sending testmails and saving mailconfig, resetting templates or saving them, saving runtimeconfig, giving users rights (when no permission, it will show another animation). Also fixed a design issue (dialog instead of modal).
Diffstat (limited to 'modules-available/dozmod/templates/userlist.html')
-rw-r--r-- | modules-available/dozmod/templates/userlist.html | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/modules-available/dozmod/templates/userlist.html b/modules-available/dozmod/templates/userlist.html index 8bba4ef8..378a2be1 100644 --- a/modules-available/dozmod/templates/userlist.html +++ b/modules-available/dozmod/templates/userlist.html @@ -64,7 +64,19 @@ function setu(action, el, uid) { if (data !== '1' && data !== '0') { el.checked = !old; - box.parent().css('background-color', 'red !important'); + box.parent().css('background-color', ''); + /* show success notification */ + $notification = $('<span></span>') + .addClass('glyphicon glyphicon-remove') + .css('color', 'red') + .css('width', '0px') + .css('position', 'relative') + .css('right', '20px') + .hide(); + box.before($notification); + $notification.fadeIn('fast', function () { + $notification.fadeOut('slow', function () { $notification.remove() }); + }); } else { el.checked = (data == 1); box.parent().css('background-color', ''); |