aboutsummaryrefslogtreecommitdiffstats
path: root/demos/index.html
diff options
context:
space:
mode:
authorJörn Zaefferer <joern.zaefferer@gmail.com>2009-01-26 23:45:40 +0000
committerJörn Zaefferer <joern.zaefferer@gmail.com>2009-01-26 23:45:40 +0000
commit6b37cd7bc6f0e3a10becc1bedb31d92f29e21830 (patch)
tree7a1a9011687a147423df3e3559b313bc591f22e0 /demos/index.html
parentf17f994eccd6616b243cce8a43a5a2a7aae76d0f (diff)
downloadjquery-ui-6b37cd7bc6f0e3a10becc1bedb31d92f29e21830.tar.gz
jquery-ui-6b37cd7bc6f0e3a10becc1bedb31d92f29e21830.zip
demos: load docs after demos, otherwise insert of docs sometimes fails
Diffstat (limited to 'demos/index.html')
-rw-r--r--demos/index.html41
1 files changed, 21 insertions, 20 deletions
diff --git a/demos/index.html b/demos/index.html
index c9058f930..6e2b623d5 100644
--- a/demos/index.html
+++ b/demos/index.html
@@ -168,28 +168,29 @@
$('#demo-link a').attr('href', path);
updateDemoNotes();
updateDemoSource(source);
- });
- if (/default.html$/.test(path)) {
- $.get("documentation/docs-" + path.match(/demos\/(.+)\//)[1] + ".html", function(html) {
- $("#demo-source").after(html);
- $("#widget-docs").tabs();
- $(".param-header").click(function() {
- $(this).parent().toggleClass("param-open").end().next().toggle();
- });
- $(".docs-list-header").each(function() {
- var header = $(this);
- var details = header.next().find(".param-details").hide();
- $("a:first", header).click(function() {
- details.show().parent().addClass("param-open");
- return false;
+
+ if (/default.html$/.test(path)) {
+ $.get("documentation/docs-" + path.match(/demos\/(.+)\//)[1] + ".html", function(html) {
+ $("#demo-source").after(html);
+ $("#widget-docs").tabs();
+ $(".param-header").click(function() {
+ $(this).parent().toggleClass("param-open").end().next().toggle();
});
- $("a:last", header).click(function() {
- details.hide().parent().removeClass("param-open");
- return false;
+ $(".docs-list-header").each(function() {
+ var header = $(this);
+ var details = header.next().find(".param-details").hide();
+ $("a:first", header).click(function() {
+ details.show().parent().addClass("param-open");
+ return false;
+ });
+ $("a:last", header).click(function() {
+ details.hide().parent().removeClass("param-open");
+ return false;
+ });
});
});
- });
- }
+ }
+ });
}
function updateDemoNotes() {
@@ -198,7 +199,7 @@
$('<div id="demo-notes"></div>').insertAfter('#demo-config');
}
$('#demo-notes').hide().empty().html(notes.html());
- $('#demo-notes').fadeIn();
+ $('#demo-notes').show();
notes.hide();
}