aboutsummaryrefslogtreecommitdiffstats
path: root/demos/index.html
diff options
context:
space:
mode:
authorPaul Bakaus <paul.bakaus@googlemail.com>2009-01-24 11:12:40 +0000
committerPaul Bakaus <paul.bakaus@googlemail.com>2009-01-24 11:12:40 +0000
commit90c53fab7c216c7f85a0c62694e36281392e2368 (patch)
treed4aa5194cbfab1bcba0cf1bd47e0078860478154 /demos/index.html
parent7b3801239c47991015ebc4387b5888758a8f9219 (diff)
downloadjquery-ui-90c53fab7c216c7f85a0c62694e36281392e2368.tar.gz
jquery-ui-90c53fab7c216c7f85a0c62694e36281392e2368.zip
demos: view source should show the actual full source, not just the javascript
Diffstat (limited to 'demos/index.html')
-rw-r--r--demos/index.html2
1 files changed, 1 insertions, 1 deletions
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.*>.*<\/script>/ig)[1];
+ var source = data;
data = data.replace(/<script.*>.*<\/script>/ig,""); // Remove script tags
data = data.replace(/<\/?link.*>/ig,""); //Remove link tags
data = data.replace(/<\/?html.*>/ig,""); //Remove html tag