Skip to content

Commit

Permalink
#114 closed: "Use section headers on discussions tabs in profiles"
Browse files Browse the repository at this point in the history
  • Loading branch information
ignatov committed Aug 8, 2011
1 parent 2b37b9f commit 0796bca
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/webapp/coprofile.css
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,10 @@
text-decoration: none;
}

.definition {
cursor: pointer;
}

.discussion_wrapper {
margin-left: 20px;
}
4 changes: 4 additions & 0 deletions src/main/webapp/scripts/coprofile.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ $(document).ready(function() {
replaceIcon("trait");
replaceIcon("object");
replaceIcon("package");

$("#discussion_comments_tab > div > h4.definition").live("click", function(){
$(this).next('.discussion_wrapper').slideToggle(100)
});
});

function replaceIcon(type) {
Expand Down

0 comments on commit 0796bca

Please sign in to comment.