diff options
author | Christian Hofmaier | 2017-12-07 18:20:06 +0100 |
---|---|---|
committer | Christian Hofmaier | 2017-12-07 18:20:06 +0100 |
commit | 0ba49ba63e81bf2f4b68f83c035bf0bef37bb3be (patch) | |
tree | fccf8e5b4db5c6a07286f936f23249966bedee84 /modules-available/dozmod/templates/orglist.html | |
parent | [sysconfig] Overview: Make mouseover highlighting work in the other direction... (diff) | |
download | slx-admin-0ba49ba63e81bf2f4b68f83c035bf0bef37bb3be.tar.gz slx-admin-0ba49ba63e81bf2f4b68f83c035bf0bef37bb3be.tar.xz slx-admin-0ba49ba63e81bf2f4b68f83c035bf0bef37bb3be.zip |
[dozmod] reworked permission system from "click and you get error" to "button is disabled due to lack of permission" + in log as there is no button, the links to the user/target are disabled (not clickable).
Diffstat (limited to 'modules-available/dozmod/templates/orglist.html')
-rw-r--r-- | modules-available/dozmod/templates/orglist.html | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/modules-available/dozmod/templates/orglist.html b/modules-available/dozmod/templates/orglist.html index 361421c5..5224c962 100644 --- a/modules-available/dozmod/templates/orglist.html +++ b/modules-available/dozmod/templates/orglist.html @@ -41,7 +41,19 @@ function seto(action, el, orgid) { 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', ''); |