Skip to content

Commit

Permalink
demos/index.html: removed iframe fade effects as it was interferring …
Browse files Browse the repository at this point in the history
…with accordion and fixed some IE bugs with iframe content not loading.
  • Loading branch information
Ca-Phun Ung committed Dec 30, 2008
1 parent 622332d commit a949ce4
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions demos/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,19 +38,17 @@
$(this).parents('ul').find('li').removeClass('demo-config-on');
$(this).parent().addClass('demo-config-on');
$('#demo-notes').hide();
$('#demo-frame').fadeOut();
});
});

$('#demo-frame').load(function(){
var notes = $('.demo-description *', $(this).contents()[0]);
$('#demo-frame').load(function() {
var content = $(this)[0].contentWindow.document || $(this).contents()[0];
var notes = $('.demo-description', content);
if ($('#demo-notes').length == 0) {
$('<div id="demo-notes" />').insertAfter('#demo-config');
}
$('#demo-notes').hide().empty().html(notes);
$('#demo-frame').fadeIn({complete: function() {
$('#demo-notes').fadeIn();
}});
$('<div id="demo-notes"></div>').insertAfter('#demo-config');
}
$('#demo-notes').hide().empty().html(notes.html()).fadeIn();
notes.hide();
});
})
.end()
Expand Down

0 comments on commit a949ce4

Please sign in to comment.