From bfcb7b48b32f88643f2ab031a7c64037f4bef901 Mon Sep 17 00:00:00 2001 From: root Date: Tue, 30 Nov 2010 05:07:36 +0300 Subject: [PATCH] 4realz4realz --- public/javascripts/stream.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/javascripts/stream.js b/public/javascripts/stream.js index 622a14df9..b0bd6e8c8 100644 --- a/public/javascripts/stream.js +++ b/public/javascripts/stream.js @@ -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