Skip to content

Commit

Permalink
use throbber in ACL ajax interface
Browse files Browse the repository at this point in the history
To avoid problems when an AJAX request takes a bit longer in the ACL
manager, a throbber is shown while loading the info.
  • Loading branch information
splitbrain committed Nov 27, 2011
1 parent 90565d6 commit 9df43a6
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions lib/plugins/acl/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
},

Expand Down

0 comments on commit 9df43a6

Please sign in to comment.