Skip to content

Commit

Permalink
package hiding fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
ignatov committed Aug 18, 2011
1 parent d4b114e commit 2b4c4f0
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/main/webapp/scripts/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -229,14 +229,16 @@ function configureHideFilter() {
scheduler.addForAll("init", domCache.liPacks, function(pack) {
$(pack).prepend("<a class='packhide'>hide</a>");
$("> a.packhide", pack).click(function(event) {
var packhide = $(this)
var packhide = $(this);
var action = packhide.text();

var listToToggle = packhide.nextAll("ol").eq(0);
if (action == "hide") {
$("~ ol", packhide).hide();
listToToggle.hide();
packhide.text("show");
}
else {
$("~ ol", packhide).show();
listToToggle.show();
packhide.text("hide");
}
return false;
Expand Down

0 comments on commit 2b4c4f0

Please sign in to comment.