r1777 - trunk/demos

r1777 - trunk/demos


Author: paul.bakaus
Date: Sat Jan 24 03:12:40 2009
New Revision: 1777
Modified:
trunk/demos/index.html
Log:
demos: view source should show the actual full source, not just the
javascript
Modified: trunk/demos/index.html
==============================================================================
--- trunk/demos/index.html    (original)
+++ trunk/demos/index.html    Sat Jan 24 03:12:40 2009
@@ -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