openrat-cms

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 27bfeb3e6b51b86dae06c41dc3aa00b467c32507
parent 58975e503a829ac98fd2803a9f36872c0f8b569f
Author: Jan Dankert <devnull@localhost>
Date:   Thu, 25 Oct 2012 19:55:59 +0200

Beim Laden eines Zweiges einen Ladebalken anzeigen.

Diffstat:
themes/default/js/plugin/jquery-plugin-orTree.js | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/themes/default/js/plugin/jquery-plugin-orTree.js b/themes/default/js/plugin/jquery-plugin-orTree.js @@ -13,8 +13,9 @@ jQuery.fn.orTree = function( options ) $(this).each(function(idxx,treeEl) { - + $(treeEl).closest('div.content').addClass('loader'); $.getJSON('./dispatcher.php?action=tree&subaction=loadBranch&id='+settings.id+'&type='+settings.type+'&output=json', function(json) { + $(treeEl).closest('div.content').removeClass('loader'); $(treeEl).append('<ul class="tree" style="display:none;"/>'); var ul = $(treeEl).children('ul').first(); var output = json['output'];