From a009bb15656fe26a29218538857b9630b97a269c Mon Sep 17 00:00:00 2001 From: ilya Date: Mon, 5 Jul 2010 05:37:23 -0400 Subject: [PATCH] Added the expected behavior of fading out the publisher field(s) if content type is clicked again --- public/javascripts/publisher.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/public/javascripts/publisher.js b/public/javascripts/publisher.js index b0e1d42ad..bc0d86530 100644 --- a/public/javascripts/publisher.js +++ b/public/javascripts/publisher.js @@ -12,6 +12,9 @@ $(this).toggleClass("selected"); $(form_id).delay(50).fadeIn(200); + } else { + $("#publisher_content_pickers").children("li").removeClass("selected"); + $("#publisher_form form").fadeOut(200); } } });