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/images/refinerycms-blog/icons/down.gif | Bin 0 -> 110 bytes public/images/refinerycms-blog/icons/up.gif | Bin 0 -> 111 bytes public/javascripts/refinery/refinerycms-blog.js | 3 +++ public/stylesheets/refinery/refinerycms-blog.css | 6 ++++++ 4 files changed, 9 insertions(+) create mode 100644 public/images/refinerycms-blog/icons/down.gif create mode 100644 public/images/refinerycms-blog/icons/up.gif (limited to 'public') diff --git a/public/images/refinerycms-blog/icons/down.gif b/public/images/refinerycms-blog/icons/down.gif new file mode 100644 index 0000000..990bd87 Binary files /dev/null and b/public/images/refinerycms-blog/icons/down.gif differ diff --git a/public/images/refinerycms-blog/icons/up.gif b/public/images/refinerycms-blog/icons/up.gif new file mode 100644 index 0000000..1edf617 Binary files /dev/null and b/public/images/refinerycms-blog/icons/up.gif differ 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' diff --git a/public/stylesheets/refinery/refinerycms-blog.css b/public/stylesheets/refinery/refinerycms-blog.css index cc6f582..bede6ce 100644 --- a/public/stylesheets/refinery/refinerycms-blog.css +++ b/public/stylesheets/refinery/refinerycms-blog.css @@ -30,4 +30,10 @@ } .page_add_icon { background-image: url('/images/refinerycms-blog/icons/page_add.png'); +} +.collapsible_menu li:first { + background-image: url('/images/refinerycms-blog/icons/up.png'); +} +.collapsible_menu li.closed { + background-image: url('/images/refinerycms-blog/icons/down.png'); } \ No newline at end of file -- cgit v1.2.3