4realz4realz
This commit is contained in:
parent
faf5baf4c5
commit
bfcb7b48b3
1 changed files with 2 additions and 2 deletions
|
|
@ -12,14 +12,14 @@ $(document).ready(function(){
|
|||
$stream.not(".show").delegate("a.show_post_comments", "click", function(evt) {
|
||||
evt.preventDefault();
|
||||
var $this = $(this),
|
||||
text = $this.html();
|
||||
text = $this.html(),
|
||||
commentBlock = $this.closest("li").find("ul.comments", ".content"),
|
||||
show = (text.indexOf("show") != -1);
|
||||
|
||||
commentBlock.fadeToggle(150, function(){
|
||||
commentBlock.toggleClass("hidden");
|
||||
});
|
||||
$this.html(text.replace((show) ? "show" : "hide", (show) ? "hide" : "show")$
|
||||
$this.html(text.replace((show) ? "show" : "hide", (show) ? "hide" : "show"));
|
||||
});
|
||||
|
||||
// comment submit action
|
||||
|
|
|
|||
Loading…
Reference in a new issue