From 5ef88809cc6af138409adcd1878009a36714dc67 Mon Sep 17 00:00:00 2001 From: tekkub Date: Fri, 16 Oct 2009 16:57:10 -0600 Subject: Rework sidebar to use jQuery UI --- js/main.js | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) (limited to 'js/main.js') diff --git a/js/main.js b/js/main.js index 7759170..248d20d 100644 --- a/js/main.js +++ b/js/main.js @@ -1,14 +1,3 @@ $(function(){ - if (typeof main_category == "undefined") { - $(".sidebar dl:first").slideDown("slow").parent().addClass("expanded") - } else { - $(".sidebar dl#" + main_category).slideDown("slow").parent().addClass("expanded") - } - - $(".sidebar li").click(function(){ - if ($(this).children("dl").is(":hidden")) { - $(".sidebar dl:visible").slideUp("fast").parent().removeClass("expanded") - $(this).addClass("expanded").children("dl").slideDown("fast") - } - }) + $(".sidebar").accordion({ header: 'h3', autoHeight: false, navigation: true, navigationFilter: function() {if (typeof main_category != "undefined") {return this.id == main_category}} }); }) \ No newline at end of file -- cgit v1.3.1