From: Paul Bakaus Date: Sat, 24 Jan 2009 11:12:40 +0000 (+0000) Subject: demos: view source should show the actual full source, not just the javascript X-Git-Tag: 1.6rc6~119 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=90c53fab7c216c7f85a0c62694e36281392e2368;p=jquery-ui.git demos: view source should show the actual full source, not just the javascript --- diff --git a/demos/index.html b/demos/index.html index 0dd3ff796..ee07fb2ea 100644 --- a/demos/index.html +++ b/demos/index.html @@ -153,7 +153,7 @@ function loadDemo(path) { var directory = path.match(/([^\/]+)\/[^\/\.]+\.html$/)[1]; $.get(path, function(data) { - var source = data.match(/.*<\/script>/ig)[1]; + var source = data; data = data.replace(/.*<\/script>/ig,""); // Remove script tags data = data.replace(/<\/?link.*>/ig,""); //Remove link tags data = data.replace(/<\/?html.*>/ig,""); //Remove html tag