public/javascripts/refinery/refinerycms-blog.js in refinerycms-blog-1.1 vs public/javascripts/refinery/refinerycms-blog.js in refinerycms-blog-1.2

- old
+ new

@@ -1,7 +1,7 @@ $(document).ready(function(){ - $('nav#actions.multilist > ul:not(.search_list) li a[href$=' + window.location.pathname + ']') + $('nav#actions.multilist > ul:not(.search_list) li a[href$="' + window.location.pathname + '"]') .parent().addClass('selected'); if($('nav#actions.multilist > ul:not(.search_list) li.selected').length == 0) { $('nav#actions.multilist > ul:not(.search_list) li a:nth(1)').parent().addClass('selected'); } @@ -13,12 +13,12 @@ } }); $('ul.collapsible_menu').each(function(i, ul) { (first_li = $(this).children('li:first')).after(div=$("<div></div>")); - + $("<span class='arrow'>&nbsp;</span>").appendTo(first_li) - + if (($(this).children('li.selected')).length == 0) { div.hide(); first_li.addClass("closed"); } $(this).children('li:not(:first)').appendTo(div); \ No newline at end of file