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 | |
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')
-rw-r--r-- | public/images/refinerycms-blog/icons/down.gif | bin | 0 -> 110 bytes | |||
-rw-r--r-- | public/images/refinerycms-blog/icons/up.gif | bin | 0 -> 111 bytes | |||
-rw-r--r-- | public/javascripts/refinery/refinerycms-blog.js | 3 | ||||
-rw-r--r-- | public/stylesheets/refinery/refinerycms-blog.css | 6 |
4 files changed, 9 insertions, 0 deletions
diff --git a/public/images/refinerycms-blog/icons/down.gif b/public/images/refinerycms-blog/icons/down.gif Binary files differnew file mode 100644 index 0000000..990bd87 --- /dev/null +++ b/public/images/refinerycms-blog/icons/down.gif diff --git a/public/images/refinerycms-blog/icons/up.gif b/public/images/refinerycms-blog/icons/up.gif Binary files differnew file mode 100644 index 0000000..1edf617 --- /dev/null +++ b/public/images/refinerycms-blog/icons/up.gif 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' 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 |