From 18a708984ce40b5053ee6db5ff337e4ea9df986b Mon Sep 17 00:00:00 2001 From: djones Date: Tue, 7 Sep 2010 16:17:26 +1200 Subject: added arrows to menu, added new comments count to top level menu item for comments, updated readme with basic install instructions --- public/javascripts/refinery/refinerycms-blog.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'public/javascripts') diff --git a/public/javascripts/refinery/refinerycms-blog.js b/public/javascripts/refinery/refinerycms-blog.js index c92ba3e..fdbf392 100644 --- a/public/javascripts/refinery/refinerycms-blog.js +++ b/public/javascripts/refinery/refinerycms-blog.js @@ -15,12 +15,15 @@ $(document).ready(function(){ $('ul.collapsible_menu').each(function(i, ul) { (first_li = $(this).children('li:first')).after(div=$("
")); + if (($(this).children('li.selected')).length == 0) { div.hide(); + first_li.addClass("closed"); } $(this).children('li:not(:first)').appendTo(div); first_li.find('> a').click(function(e){ + first_li.toggleClass("closed"); $(this).parent().next('div').animate({ opacity: 'toggle' , height: 'toggle' -- cgit v1.2.3