diff options
author | djones <dgjones@gmail.com> | 2010-09-07 16:17:26 +1200 |
---|---|---|
committer | djones <dgjones@gmail.com> | 2010-09-07 16:17:26 +1200 |
commit | 18a708984ce40b5053ee6db5ff337e4ea9df986b (patch) | |
tree | bcedb70a39d28798f4717dbefd54150ca03d2e4c /public/javascripts | |
parent | bc84757e41578d68e12dc813d9be0c12ca191175 (diff) | |
download | refinerycms-blog-18a708984ce40b5053ee6db5ff337e4ea9df986b.tar.gz refinerycms-blog-18a708984ce40b5053ee6db5ff337e4ea9df986b.tar.bz2 refinerycms-blog-18a708984ce40b5053ee6db5ff337e4ea9df986b.zip |
added arrows to menu, added new comments count to top level menu item for comments, updated readme with basic install instructions
Diffstat (limited to 'public/javascripts')
-rw-r--r-- | public/javascripts/refinery/refinerycms-blog.js | 3 |
1 files changed, 3 insertions, 0 deletions
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=$("<div></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' |