]> source.dussan.org Git - jquery-ui.git/commitdiff
demos: view source cleanup
authorRichard Worth <rdworth@gmail.com>
Sat, 24 Jan 2009 14:05:00 +0000 (14:05 +0000)
committerRichard Worth <rdworth@gmail.com>
Sat, 24 Jan 2009 14:05:00 +0000 (14:05 +0000)
demos/index.html

index ee07fb2eafdac87cd1451180389f738a6b17470e..0e820da2eae439c8d3d731e2afecfaa41f3567ff 100644 (file)
                                        return false;
                                }).end().find(">div").hide();
                        }
-                       $('#demo-source code').empty().text(source);
+                       var cleanedSource = source
+                               .replace('themes/base/ui.all.css', 'theme/ui.all.css')
+                               .replace(/\s*\x3Clink.*demos\x2Ecss.*\x3E\s*/, '\r\n\t')
+                               .replace(/\x2E\x2E\x2F\x2E\x2E\x2F/g, '');
+
+                       $('#demo-source code').empty().text(cleanedSource);
                }
                
                function resetDemos() {