summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2011-11-27 14:46:05 +0100
committerAndreas Gohr <andi@splitbrain.org>2011-11-27 14:46:05 +0100
commit9df43a68bac022beef078c9d02df6364edea8596 (patch)
tree7dcf4952c7f92333b52a7dd5eac0933668866f24
parent90565d653f88b4e3c641a01616f6a10cbf54d0ad (diff)
downloadrpg-9df43a68bac022beef078c9d02df6364edea8596.tar.gz
rpg-9df43a68bac022beef078c9d02df6364edea8596.tar.bz2
use throbber in ACL ajax interface
To avoid problems when an AJAX request takes a bit longer in the ACL manager, a throbber is shown while loading the info.
-rw-r--r--lib/plugins/acl/script.js10
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/plugins/acl/script.js b/lib/plugins/acl/script.js
index d912a2407..0ba91cdc9 100644
--- a/lib/plugins/acl/script.js
+++ b/lib/plugins/acl/script.js
@@ -60,10 +60,12 @@ var dw_acl = {
* Load the current permission info and edit form
*/
loadinfo: function () {
- jQuery('#acl__info').load(
- DOKU_BASE + 'lib/plugins/acl/ajax.php',
- jQuery('#acl__detail form').serialize() + '&ajax=info'
- );
+ jQuery('#acl__info')
+ .html('<img src="'+DOKU_BASE+'lib/images/throbber.gif" alt="..." />')
+ .load(
+ DOKU_BASE + 'lib/plugins/acl/ajax.php',
+ jQuery('#acl__detail form').serialize() + '&ajax=info'
+ );
return false;
},