Skip to content

Commit

Permalink
fixed entities toggle at History
Browse files Browse the repository at this point in the history
  • Loading branch information
ignatov committed Aug 16, 2011
1 parent 09fb096 commit 5258d69
Showing 1 changed file with 2 additions and 32 deletions.
34 changes: 2 additions & 32 deletions src/main/webapp/scripts/cohistory.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,40 +104,10 @@ function reload() {
else {
element.slideDown(100);
}
};
}
docSetSigs.css("cursor", "pointer");
docSetSigs.click(function(){
commentShow($("+ div", $(this)));
});
var docAllSigs = $(".changeset .signature");
var docShowSigs = docAllSigs.filter(function(){
return $("+ div.fullcomment", $(this)).length > 0;
});
docShowSigs.css("cursor", "pointer");
docShowSigs.click(function(){
commentShow($("+ div.fullcomment", $(this)));
});
function commentToggle(shortComment){
var vis = $("~ div.fullcomment:visible", shortComment);
if (vis.length > 0) {
shortComment.slideDown(100);
vis.slideUp(100);
}
else {
var hid = $("~ div.fullcomment:hidden", shortComment);
hid.slideDown(100);
shortComment.slideUp(100);
}
};
var docToggleSigs = docAllSigs.filter(function(){
return $("+ p.shortcomment", $(this)).length > 0;
});
docToggleSigs.css("cursor", "pointer");
docToggleSigs.click(function(){
commentToggle($("+ p.shortcomment", $(this)));
});
$("p.shortcomment").click(function(){
commentToggle($(this));
commentShow($(this).next());
});
filter();
}
Expand Down

0 comments on commit 5258d69

Please sign in to comment.