From 6fda9d4fa747310b9b6037987ec27f46c438fb10 Mon Sep 17 00:00:00 2001 From: Philip Arndt Date: Thu, 17 Feb 2011 14:55:54 +1300 Subject: [PATCH] Chrome (atleast) got more strict about this and if you have a / in the selector then you need quotation marks. Closes GH-39 --- public/javascripts/refinery/refinerycms-blog.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/public/javascripts/refinery/refinerycms-blog.js b/public/javascripts/refinery/refinerycms-blog.js index 3ddbcc2f..e730c6fc 100644 --- a/public/javascripts/refinery/refinerycms-blog.js +++ b/public/javascripts/refinery/refinerycms-blog.js @@ -1,5 +1,5 @@ $(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'); @@ -15,9 +15,9 @@ $(document).ready(function(){ $('ul.collapsible_menu').each(function(i, ul) { (first_li = $(this).children('li:first')).after(div=$("
")); - + $(" ").appendTo(first_li) - + if (($(this).children('li.selected')).length == 0) { div.hide(); first_li.addClass("closed");