Skip to content

Commit

Permalink
arrows added at History
Browse files Browse the repository at this point in the history
  • Loading branch information
ignatov committed Aug 16, 2011
1 parent 0cfaffa commit 09fb096
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions src/main/webapp/scripts/cohistory.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,29 @@ function reload() {
}
});

/* Add toggle arrows */
var docAllSigs = $("h4.signature");

function commentToggleFct(signature){
var parent = signature.parent();
var shortComment = $(".shortcomment", parent);
var fullComment = $(".fullcomment", parent);
var vis = $(":visible", fullComment);
signature.toggleClass("closed").toggleClass("opened");
if (vis.length > 0) {
shortComment.slideDown(100);
fullComment.slideUp(100);
}
else {
shortComment.slideUp(100);
fullComment.slideDown(100);
}
}
docAllSigs.addClass("closed");
docAllSigs.click(function() {
commentToggleFct($(this));
});

var docSetSigs = $(".changeset > .definition");
function commentShow(element){
var vis = $(":visible", element);
Expand Down

0 comments on commit 09fb096

Please sign in to comment.