From e6b6d39bc7fd50830128afc49c46fef8fdcad908 Mon Sep 17 00:00:00 2001 From: Toks Date: Tue, 11 Jun 2013 12:50:57 -0400 Subject: [PATCH] fixes #1686 --- app/assets/javascripts/posts.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/assets/javascripts/posts.js b/app/assets/javascripts/posts.js index a5d1ca6df..785a14d18 100644 --- a/app/assets/javascripts/posts.js +++ b/app/assets/javascripts/posts.js @@ -302,6 +302,10 @@ $("#wiki-page-excerpt").show(); e.preventDefault(); }); + + if (/Nobody here but us chickens/.test($("#posts").html()) && !/Deleted posts/.test($("#related_list"))) { + $("#show-wiki-excerpt-link").click(); + } } Danbooru.Post.initialize_post_sections = function() {