summaryrefslogtreecommitdiffstats
path: root/modules-available/dozmod/templates
diff options
context:
space:
mode:
authorChristian Klinger2016-08-02 17:18:38 +0200
committerChristian Klinger2016-08-02 17:18:38 +0200
commitd86e542005bfefb6d4ae2c3ed9419285099d2cae (patch)
tree57b4ac7fa3b3c55560ccfe51b0890299682d0060 /modules-available/dozmod/templates
parentMerge branch 'modularization' of git.openslx.org:openslx-ng/slx-admin into mo... (diff)
downloadslx-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/templates')
-rw-r--r--modules-available/dozmod/templates/orglist.html21
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>