diff options
author | Andreas Gohr <andi@splitbrain.org> | 2011-11-27 14:46:05 +0100 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2011-11-27 14:46:05 +0100 |
commit | 9df43a68bac022beef078c9d02df6364edea8596 (patch) | |
tree | 7dcf4952c7f92333b52a7dd5eac0933668866f24 /lib | |
parent | 90565d653f88b4e3c641a01616f6a10cbf54d0ad (diff) | |
download | rpg-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.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/plugins/acl/script.js | 10 |
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; }, |