Skip to content

Commit

Permalink
add # to href open/close
Browse files Browse the repository at this point in the history
  • Loading branch information
Enrico Pilotto committed May 15, 2012
1 parent a016e4d commit 65738e2
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions index.html
Expand Up @@ -10,11 +10,9 @@
$('ul.telefilms').tree({default_expanded_paths_string : '0/0/0,0/0/2,0/2/4'});
$('.expand_button').on('click', function() {
$('ul.telefilms.first').expand('none');
return false;
});
$('.collapse_button').on('click', function() {
$('ul.telefilms.first').collapse();
return false;
});
});
</script>
Expand All @@ -25,8 +23,8 @@

<div>

<a href="" class="expand_button">Open all</a>
<a href="" class="collapse_button">Close all</a>
<a href="#" class="expand_button">Open all</a>
<a href="#" class="collapse_button">Close all</a>

<ul class="telefilms first" data-cookie="cookie1"> <!-- Use 'cookie1' as unique key to save cookie only for this tree -->
<li>
Expand Down

0 comments on commit 65738e2

Please sign in to comment.