diff options
Diffstat (limited to 'demos')
-rw-r--r-- | demos/index.html | 10 |
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); + } }); } |