From 274ff534db8e98dd52dfa68a7c2c89ae14683c41 Mon Sep 17 00:00:00 2001 From: Bohdan Ganicky Date: Tue, 20 Jan 2009 14:44:28 +0000 Subject: [PATCH] demos/index: quick fix for #3810 --- demos/index.html | 2 ++ 1 file changed, 2 insertions(+) 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>/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(); });