diff options
author | Ca-Phun Ung <pazu2k@gmail.com> | 2008-12-30 11:19:49 +0000 |
---|---|---|
committer | Ca-Phun Ung <pazu2k@gmail.com> | 2008-12-30 11:19:49 +0000 |
commit | f017c0aa218b614413655eac0bce29f304933674 (patch) | |
tree | f517620cf90e446393498b8bdee88ad5b37a2f8c /demos/index.html | |
parent | 4d9a8b24c1fb026df6058198d1c09c7d0b330019 (diff) | |
download | jquery-ui-f017c0aa218b614413655eac0bce29f304933674.tar.gz jquery-ui-f017c0aa218b614413655eac0bce29f304933674.zip |
demos/index.html - fixed syntax error and right navigation picking up full url in IE6.
Diffstat (limited to 'demos/index.html')
-rw-r--r-- | demos/index.html | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/demos/index.html b/demos/index.html index 526ab53d7..1a4505af7 100644 --- a/demos/index.html +++ b/demos/index.html @@ -18,8 +18,8 @@ <script type="text/javascript" src="../ui/ui.sortable.js"></script> <script type="text/javascript" src="../ui/ui.tabs.js"></script> <script type="text/javascript"> - jQuery(function($){ - $('.left-nav a').click(function(ev){ + jQuery(function($) { + $('.left-nav a').click(function(ev) { var section = this.href.replace('/index.html',''); var header = section.replace(/.+\/([^\/]+)/,'$1'); $('td.normal div.normal') @@ -32,7 +32,7 @@ .find('#demo-config-menu') .load(this.href + ' .demos-nav', function() { $('#demo-config-menu a').each(function() { - this.setAttribute('href', section + '/' + this.getAttribute('href')); + this.setAttribute('href', section + '/' + this.getAttribute('href').replace(/.+\/([^\/]+)/,'$1')); $(this).attr('target', 'demo-frame'); $(this).click(function() { $(this).parents('ul').find('li').removeClass('demo-config-on'); |