openrat-cms

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

commit 2234accac495813c286263208977342f52af35e6
parent db3c7dde3612608f7d030facac307cb047170781
Author: Jan Dankert <devnull@localhost>
Date:   Tue, 29 Nov 2011 22:35:54 +0100

Slide-Effekte für den Auswahl-Baum.

Diffstat:
themes/default/js/openrat.js | 17++++++++++-------
1 file changed, 10 insertions(+), 7 deletions(-)

diff --git a/themes/default/js/openrat.js b/themes/default/js/openrat.js @@ -363,7 +363,7 @@ function loadBranch(li,type,id) }); //$(ul).children('li:last-child').addClass('last'); - $(ul).fadeIn('fast'); // Einblenden + $(ul).slideDown('fast'); // Einblenden }); $(li).children('div.tree').unbind('click'); @@ -456,12 +456,15 @@ function setNewId( id ) function closeBranch(li,type,id) { //alert("schließen:"+$(li).html() ); - $(li).children('ul').fadeOut('slow').remove(); - $(li).children('div.tree').unbind('click'); - $(li).children('div.tree').removeClass('open').addClass('closed'); - //alert( "wieder öffnen: "+$(li).children('div').first().html()); - $(li).children('div.tree').click( function() { loadBranch($(this).parent(),type,id) }); - //$(li).children('img.tree').attr('src',OR_THEMES_EXT_DIR+'default/images/tree_plus.gif'); + $(li).children('ul').slideUp('fast', function() { + + $(li).children('ul').remove(); + $(li).children('div.tree').unbind('click'); + $(li).children('div.tree').removeClass('open').addClass('closed'); + //alert( "wieder öffnen: "+$(li).children('div').first().html()); + $(li).children('div.tree').click( function() { loadBranch($(this).parent(),type,id) }); + //$(li).children('img.tree').attr('src',OR_THEMES_EXT_DIR+'default/images/tree_plus.gif'); + } ); }