diff options
author | Ca-Phun Ung <pazu2k@gmail.com> | 2008-12-30 20:14:58 +0000 |
---|---|---|
committer | Ca-Phun Ung <pazu2k@gmail.com> | 2008-12-30 20:14:58 +0000 |
commit | a949ce4e6058d099f12b4f05b88c70bf6258ec0a (patch) | |
tree | 900318fc9d05238bbf8a1b6e9d2751ab898277d1 /demos/index.html | |
parent | 622332d1a09c0c5d9db0c5ec986de3bd1772f414 (diff) | |
download | jquery-ui-a949ce4e6058d099f12b4f05b88c70bf6258ec0a.tar.gz jquery-ui-a949ce4e6058d099f12b4f05b88c70bf6258ec0a.zip |
demos/index.html: removed iframe fade effects as it was interferring with accordion and fixed some IE bugs with iframe content not loading.
Diffstat (limited to 'demos/index.html')
-rw-r--r-- | demos/index.html | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/demos/index.html b/demos/index.html index 775630bf4..cfae779c8 100644 --- a/demos/index.html +++ b/demos/index.html @@ -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() |