Skip to content

Commit

Permalink
Chrome (atleast) got more strict about this and if you have a / in th…
Browse files Browse the repository at this point in the history
…e selector then you need quotation marks. Closes refineryGH-39
  • Loading branch information
parndt committed Feb 17, 2011
1 parent 78e5eeb commit 6fda9d4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions 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');
Expand All @@ -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'>&nbsp;</span>").appendTo(first_li)

if (($(this).children('li.selected')).length == 0) {
div.hide();
first_li.addClass("closed");
Expand Down

0 comments on commit 6fda9d4

Please sign in to comment.