diff options
author | Philip Arndt <parndt@gmail.com> | 2011-02-17 14:55:54 +1300 |
---|---|---|
committer | Philip Arndt <parndt@gmail.com> | 2011-02-17 14:55:54 +1300 |
commit | 6fda9d4fa747310b9b6037987ec27f46c438fb10 (patch) | |
tree | aabcd83e4d43bdf2092ffdcc286a0f9dfbc67acf | |
parent | 78e5eeb6247dac5306336e93459c37cdcefa25ad (diff) | |
download | refinerycms-blog-6fda9d4fa747310b9b6037987ec27f46c438fb10.tar.gz refinerycms-blog-6fda9d4fa747310b9b6037987ec27f46c438fb10.tar.bz2 refinerycms-blog-6fda9d4fa747310b9b6037987ec27f46c438fb10.zip |
Chrome (atleast) got more strict about this and if you have a / in the selector then you need quotation marks. Closes GH-39
-rw-r--r-- | public/javascripts/refinery/refinerycms-blog.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/public/javascripts/refinery/refinerycms-blog.js b/public/javascripts/refinery/refinerycms-blog.js index 3ddbcc2..e730c6f 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=$("<div></div>")); - + $("<span class='arrow'> </span>").appendTo(first_li) - + if (($(this).children('li.selected')).length == 0) { div.hide(); first_li.addClass("closed"); |