diff options
author | Jannik Schönartz | 2017-12-28 15:55:49 +0100 |
---|---|---|
committer | Jannik Schönartz | 2017-12-28 15:55:49 +0100 |
commit | 086c7458fe2c59dbb907755648362917c615404e (patch) | |
tree | a0ddf550223e628e70bcf9fe33096c1f000d2742 /modules-available/dozmod/templates/orglist.html | |
parent | [usb-lock-off] Switched to the _hw db structure. Adding a device and db contr... (diff) | |
parent | [sysconfig] Restore long lost ajax functionality (diff) | |
download | slx-admin-086c7458fe2c59dbb907755648362917c615404e.tar.gz slx-admin-086c7458fe2c59dbb907755648362917c615404e.tar.xz slx-admin-086c7458fe2c59dbb907755648362917c615404e.zip |
Merge branch 'origin/master' into usb-lock-off
Diffstat (limited to 'modules-available/dozmod/templates/orglist.html')
-rw-r--r-- | modules-available/dozmod/templates/orglist.html | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/modules-available/dozmod/templates/orglist.html b/modules-available/dozmod/templates/orglist.html index 361421c5..33db955a 100644 --- a/modules-available/dozmod/templates/orglist.html +++ b/modules-available/dozmod/templates/orglist.html @@ -33,6 +33,7 @@ function seto(action, el, orgid) { var box = $(el); + var $notification; box = box.parent(); var v = el.checked ? '1' : '0'; var old = el.checked == true; @@ -41,7 +42,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', ''); |