From d86e542005bfefb6d4ae2c3ed9419285099d2cae Mon Sep 17 00:00:00 2001
From: Christian Klinger
Date: Tue, 2 Aug 2016 17:18:38 +0200
Subject: added JS animation to show a successful save.
---
modules-available/dozmod/templates/orglist.html | 21 +++++++++++++++++++--
1 file changed, 19 insertions(+), 2 deletions(-)
(limited to 'modules-available/dozmod/templates')
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}}
{{displayname}} |
- |
+
+
+ |
{{/organizations}}
@@ -41,6 +43,21 @@ function seto(action, el, orgid) {
el.checked = (data == 1);
}
box.css('display', '');
+
+ /* show success notification */
+ $notification = $('')
+ .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) {
});
}
--->
\ No newline at end of file
+-->
--
cgit v1.2.3-55-g7522