From c44cdb449b1e7991865f98cb7d4eea858bd20a57 Mon Sep 17 00:00:00 2001 From: Ca-Phun Ung Date: Tue, 30 Dec 2008 09:41:48 +0000 Subject: demos/index.html - fixed on state in right nav --- demos/index.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'demos/index.html') 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('
') .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() -- cgit v1.2.3