diff options
| author | tekkub <tekkub@gmail.com> | 2009-10-16 16:57:10 -0600 |
|---|---|---|
| committer | tekkub <tekkub@gmail.com> | 2009-10-16 16:57:10 -0600 |
| commit | 5ef88809cc6af138409adcd1878009a36714dc67 (patch) | |
| tree | fcdd900c98fcda7ce15ca9dd582519acbaf94a35 /js/main.js | |
| parent | be7d6fd29ef5fd159023b5ca677adc990fd027c8 (diff) | |
Rework sidebar to use jQuery UI
Diffstat (limited to 'js/main.js')
| -rw-r--r-- | js/main.js | 13 |
1 files changed, 1 insertions, 12 deletions
@@ -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 |
