mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-04-27 03:00:12 -04:00
Made comment compose box collapse reply link
This commit is contained in:
@@ -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() {
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user