openrat-cms

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

commit 13e88acc4586d26449503465bb3377a9303fcf87
parent d6064a4be88c7938d06cc653bc8488d44091ff7d
Author: Jan Dankert <devnull@localhost>
Date:   Wed,  8 Nov 2017 00:01:31 +0100

...?

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

diff --git a/themes/default/js/plugin/jquery-plugin-orTree.js b/themes/default/js/plugin/jquery-plugin-orTree.js @@ -15,7 +15,6 @@ jQuery.fn.orTree = function( options ) { $(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']; @@ -67,6 +66,11 @@ jQuery.fn.orTree = function( options ) }); //$(ul).children('li:last-child').addClass('last'); $(ul).slideDown('fast'); // Einblenden + + }).fail( function() { + // + }).always( function() { + $(treeEl).closest('div.content').removeClass('loader'); }); $(treeEl).children('div.tree').unbind('click');