Skip to content
Permalink
Browse files

demos/index.html - fixed syntax error and right navigation picking up…

… full url in IE6.
  • Loading branch information
Ca-Phun Ung
Ca-Phun Ung committed Dec 30, 2008
1 parent 4d9a8b2 commit f017c0aa218b614413655eac0bce29f304933674
Showing with 3 additions and 3 deletions.
  1. +3 −3 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');

0 comments on commit f017c0a

Please sign in to comment.
You can’t perform that action at this time.