diff options
Diffstat (limited to 'modules-available/dozmod/templates')
-rw-r--r-- | modules-available/dozmod/templates/orglist.html | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/modules-available/dozmod/templates/orglist.html b/modules-available/dozmod/templates/orglist.html index d325cc4d..34fa039c 100644 --- a/modules-available/dozmod/templates/orglist.html +++ b/modules-available/dozmod/templates/orglist.html @@ -17,7 +17,9 @@ {{#organizations}} <tr> <td class="text-left slx-nowrap">{{displayname}}</td> - <td><input onclick="seto('setorglogin', this, '{{organizationid}}')" type="checkbox" {{{canlogin}}}></td> + <td class="text-nowrap"> + <input onclick="seto('setorglogin', this, '{{organizationid}}')" type="checkbox" {{{canlogin}}}> + </td> </tr> {{/organizations}} </tbody> @@ -41,6 +43,21 @@ function seto(action, el, orgid) { el.checked = (data == 1); } box.css('display', ''); + + /* 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');}); + + + + }).fail(function() { el.checked = !old; box.parent().css('background-color', 'red !important'); @@ -48,4 +65,4 @@ function seto(action, el, orgid) { }); } ---> </script>
\ No newline at end of file +--> </script> |