diff options
author | Christian Klinger | 2016-08-02 17:18:38 +0200 |
---|---|---|
committer | Christian Klinger | 2016-08-02 17:18:38 +0200 |
commit | d86e542005bfefb6d4ae2c3ed9419285099d2cae (patch) | |
tree | 57b4ac7fa3b3c55560ccfe51b0890299682d0060 /modules-available/dozmod | |
parent | Merge branch 'modularization' of git.openslx.org:openslx-ng/slx-admin into mo... (diff) | |
download | slx-admin-d86e542005bfefb6d4ae2c3ed9419285099d2cae.tar.gz slx-admin-d86e542005bfefb6d4ae2c3ed9419285099d2cae.tar.xz slx-admin-d86e542005bfefb6d4ae2c3ed9419285099d2cae.zip |
added JS animation to show a successful save.
Diffstat (limited to 'modules-available/dozmod')
-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> |