aboutsummaryrefslogtreecommitdiffstats
path: root/demos
diff options
context:
space:
mode:
authorCa-Phun Ung <pazu2k@gmail.com>2009-01-03 14:24:57 +0000
committerCa-Phun Ung <pazu2k@gmail.com>2009-01-03 14:24:57 +0000
commit3c3e17cdd0d24dd669ee7b1bd01f0c12a84c815c (patch)
tree89481aa9fad2511fc21b7653b24947d24bfe2674 /demos
parent12ae21dff7d237e89dfaa81327dcf964268da0e1 (diff)
downloadjquery-ui-3c3e17cdd0d24dd669ee7b1bd01f0c12a84c815c.tar.gz
jquery-ui-3c3e17cdd0d24dd669ee7b1bd01f0c12a84c815c.zip
demos/index.html - replaced the $= attribute selector with an if condition for now to overcome the selector bug in 1.3.
Diffstat (limited to 'demos')
-rw-r--r--demos/index.html10
1 files changed, 6 insertions, 4 deletions
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);
+ }
});
}