Remove stream lives from ready block

This commit is contained in:
Raphael 2010-08-25 13:52:59 -07:00
parent 17636f4fd2
commit f8d63052d4

View file

@ -3,10 +3,11 @@ $(document).ready(function(){
var $this = $(this);
if($this.children().length > 1) {
$this.parent().show();
var show_comments_toggle = $(this).parent().prev().children(".show_post_comments");
show_comments_toggle.html("hide comments ("+ ($(this).children().length - 1) + ")");
var show_comments_toggle = $this.parent().prev().children(".show_post_comments");
show_comments_toggle.html("hide comments ("+ ($this.children().length - 1) + ")");
};
});
});//end document ready
$("#stream li").live('mouseover',function() {
$(this).children(".destroy_link").fadeIn(0);
@ -45,4 +46,4 @@ $(document).ready(function(){
$(".comment_submit").live('click', function(evt){
$this.parents("p").parents("form").children("p").children(".comment_box").attr("rows", 1);
});
});//end document ready