aboutsummaryrefslogtreecommitdiffstats
path: root/demos/index.html
diff options
context:
space:
mode:
authorBohdan Ganicky <bohdan.ganicky@gmail.com>2009-01-20 14:44:28 +0000
committerBohdan Ganicky <bohdan.ganicky@gmail.com>2009-01-20 14:44:28 +0000
commit274ff534db8e98dd52dfa68a7c2c89ae14683c41 (patch)
treeba235a7d083bee6a959bf3ac542071794df9c9d7 /demos/index.html
parentb6bf540c0d5a3273a71639d219aba6aa632d63ea (diff)
downloadjquery-ui-274ff534db8e98dd52dfa68a7c2c89ae14683c41.tar.gz
jquery-ui-274ff534db8e98dd52dfa68a7c2c89ae14683c41.zip
demos/index: quick fix for #3810
Diffstat (limited to 'demos/index.html')
-rw-r--r--demos/index.html2
1 files changed, 2 insertions, 0 deletions
diff --git a/demos/index.html b/demos/index.html
index 59246426d..81f3ddd45 100644
--- a/demos/index.html
+++ b/demos/index.html
@@ -164,7 +164,9 @@
data = data.replace(/<title.*>.*<\/title>/ig,""); // Remove title tags
data = data.replace(/((href|src)=["'])(?!(http|#))/ig, "$1" + directory + "/");
+ $('#demo-style').remove();
$('#demo-frame').empty().html(data);
+ $('#demo-frame style').clone().appendTo('head').attr('id','demo-style');
$('#demo-link a').attr('href', path);
updateDemoNotes();
});