demos/index.html - replaced the $= attribute selector with an if condition for now to overcome the selector bug in 1.3.

This commit is contained in:
Ca-Phun Ung 2009-01-03 14:24:57 +00:00
parent 12ae21dff7
commit 3c3e17cdd0

View File

@ -122,10 +122,12 @@
if (window.location.hash) { if (window.location.hash) {
var demo = window.location.hash.split('|')[1]; var demo = window.location.hash.split('|')[1];
$('#demo-config-menu a[href$="'+ demo +'.html"]').each(function(){ $('#demo-config-menu a').each(function(){
$(this).parents('ul').find('li').removeClass('demo-config-on'); if (this.href.indexOf(demo + '.html') !== -1) {
$(this).parent().addClass('demo-config-on'); $(this).parents('ul').find('li').removeClass('demo-config-on');
loadDemo(this.href); $(this).parent().addClass('demo-config-on');
loadDemo(this.href);
}
}); });
} }