Made comment compose box collapse reply link

This commit is contained in:
Paradox
2011-07-15 16:03:22 -07:00
committed by Max Goodman
parent 3c5c9dc3c9
commit 7625c56ab4

View File

@@ -60,7 +60,7 @@ $(function() {
//Help expando
$('.help-toggle').live('click', function() {
$(this).toggleClass("expanded");
$(this).parent().siblings(".markhelp-parent").toggle();
$(this).parent().parent().siblings(".markhelp-parent").toggle();
return false;
});
@@ -96,6 +96,10 @@ $(function() {
$(this).parent().removeClass('expanded');
$(this).parent().siblings('.options_link').removeClass("active");
});
//Collapse when we click reply
$('.reply-button').live("click", function() {
$(this).parent().siblings('.options-link').click();
});
/* the iphone doesn't play nice with live() unless there is already a registered click function. That's sad */
$(".thing").click(function() {
});