diff options
author | Ca-Phun Ung <pazu2k@gmail.com> | 2008-12-30 09:41:48 +0000 |
---|---|---|
committer | Ca-Phun Ung <pazu2k@gmail.com> | 2008-12-30 09:41:48 +0000 |
commit | c44cdb449b1e7991865f98cb7d4eea858bd20a57 (patch) | |
tree | 427a132baddd8cca541a820deb0a19b447a936ba /demos/index.html | |
parent | b0c396b427de689421dcd13312e41df75c8a00bd (diff) | |
download | jquery-ui-c44cdb449b1e7991865f98cb7d4eea858bd20a57.tar.gz jquery-ui-c44cdb449b1e7991865f98cb7d4eea858bd20a57.zip |
demos/index.html - fixed on state in right nav
Diffstat (limited to 'demos/index.html')
-rw-r--r-- | demos/index.html | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/demos/index.html b/demos/index.html index 0e3990637..e26cc48c3 100644 --- a/demos/index.html +++ b/demos/index.html @@ -30,10 +30,14 @@ .find('#demo-config') .append('<iframe id="demo-frame" name="demo-frame" width="520" height="314" scrolling="auto" frameborder="0" src="'+ section +'/default.html"></iframe><div id="demo-config-menu"></div>') .find('#demo-config-menu') - .load(this.href, function(){ + .load(this.href + ' #container', function(){ $('#demo-config-menu a').each(function(){ this.setAttribute('href', section + '/' + this.getAttribute('href')); $(this).attr('target', 'demo-frame'); + $(this).click(function(){ + $(this).parents('ul').find('li').removeClass('demo-config-on'); + $(this).parent().addClass('demo-config-on'); + }); }); }) .end() |