]> source.dussan.org Git - jquery-ui.git/commitdiff
demos: view source should show the actual full source, not just the javascript
authorPaul Bakaus <paul.bakaus@googlemail.com>
Sat, 24 Jan 2009 11:12:40 +0000 (11:12 +0000)
committerPaul Bakaus <paul.bakaus@googlemail.com>
Sat, 24 Jan 2009 11:12:40 +0000 (11:12 +0000)
demos/index.html

index 0dd3ff7961d2ab163c65261385ef81f066d831b1..ee07fb2eafdac87cd1451180389f738a6b17470e 100644 (file)
                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