From 299baf7d733e82bc6e093784e0a02bbd17f43509 Mon Sep 17 00:00:00 2001 From: Toks Date: Sun, 16 Jun 2013 10:06:05 -0400 Subject: [PATCH] fixes #1681 --- app/assets/javascripts/posts.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/assets/javascripts/posts.js b/app/assets/javascripts/posts.js index 1b8fd5557..94aad366f 100644 --- a/app/assets/javascripts/posts.js +++ b/app/assets/javascripts/posts.js @@ -296,6 +296,9 @@ }); $("#show-wiki-excerpt-link").click(function(e) { + if ($(this).parent("li").hasClass("active")) { + return; + } $("#show-posts-link").parent("li").removeClass("active"); $("#show-wiki-excerpt-link").parent("li").addClass("active"); $("#posts").hide();