mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
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:
parent
12ae21dff7
commit
3c3e17cdd0
@ -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);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user