From 3c3e17cdd0d24dd669ee7b1bd01f0c12a84c815c Mon Sep 17 00:00:00 2001 From: Ca-Phun Ung Date: Sat, 3 Jan 2009 14:24:57 +0000 Subject: demos/index.html - replaced the $= attribute selector with an if condition for now to overcome the selector bug in 1.3. --- demos/index.html | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'demos/index.html') diff --git a/demos/index.html b/demos/index.html index 8200894c3..8b8d9253e 100644 --- a/demos/index.html +++ b/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); + } }); } -- cgit v1.2.3