Skip to content
Permalink
Browse files

demos/index.html - replaced the $= attribute selector with an if cond…

…ition for now to overcome the selector bug in 1.3.
  • Loading branch information...
Ca-Phun Ung
Ca-Phun Ung committed Jan 3, 2009
1 parent 12ae21d commit 3c3e17cdd0d24dd669ee7b1bd01f0c12a84c815c
Showing with 6 additions and 4 deletions.
  1. +6 −4 demos/index.html
@@ -122,10 +122,12 @@
if (window.location.hash) {
var demo = window.location.hash.split('|')[1];
$('#demo-config-menu a[href$="'+ demo +'.html"]').each(function(){
$(this).parents('ul').find('li').removeClass('demo-config-on');
$(this).parent().addClass('demo-config-on');
loadDemo(this.href);
$('#demo-config-menu a').each(function(){
if (this.href.indexOf(demo + '.html') !== -1) {
$(this).parents('ul').find('li').removeClass('demo-config-on');
$(this).parent().addClass('demo-config-on');
loadDemo(this.href);
}
});
}

0 comments on commit 3c3e17c

Please sign in to comment.
You can’t perform that action at this time.