mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
demos/index.html - fixed syntax error and right navigation picking up full url in IE6.
This commit is contained in:
parent
4d9a8b24c1
commit
f017c0aa21
@ -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');
|
||||
|
Loading…
Reference in New Issue
Block a user