Permalink
Browse files

Update jquery.horizontalNav.js

Fixed: Was adding processed/notprocessed class to parent element, not supplied element. Also fixed ```.horizontalNav-notprocessed``` not being removed if hardcoded via html for non JS fallback..
  • Loading branch information...
1 parent 36dc769 commit 64aa12fa4cd0440cd396429fd47d35c367dda5f7 @Hambrook Hambrook committed Sep 4, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 jquery.horizontalNav.js
@@ -37,7 +37,7 @@
li_a = li.find('> a'); // Remove padding from the links
if (o.minimumItems && o.minimumItems > li_count) {
- ul_wrap.addClass("horizontalNav-notprocessed");
+ $this.addClass("horizontalNav-notprocessed");
return false;
}
@@ -135,7 +135,7 @@
ul.css({ 'display' : 'table', 'float' : 'none', 'width' : '100%' });
li.css({ 'display' : 'table-cell', 'float' : 'none' });
}
- ul_wrap.addClass("horizontalNav-processed");
+ $this.addClass("horizontalNav-processed").removeClass("horizontalNav-notprocessed");
}
}); // @end of return this.each()

0 comments on commit 64aa12f

Please sign in to comment.