aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Worth <rdworth@gmail.com>2009-01-24 14:05:00 +0000
committerRichard Worth <rdworth@gmail.com>2009-01-24 14:05:00 +0000
commit47f9a3b7dc7a7dd68831e031bf51bd65cecc27d4 (patch)
treebf849f0cc2f82b32ee4bb6cae424a22e63a96160
parent29323c710de4c08d35b1615411828de1c4b6bfa6 (diff)
downloadjquery-ui-47f9a3b7dc7a7dd68831e031bf51bd65cecc27d4.tar.gz
jquery-ui-47f9a3b7dc7a7dd68831e031bf51bd65cecc27d4.zip
demos: view source cleanup
-rw-r--r--demos/index.html7
1 files changed, 6 insertions, 1 deletions
diff --git a/demos/index.html b/demos/index.html
index ee07fb2ea..0e820da2e 100644
--- a/demos/index.html
+++ b/demos/index.html
@@ -211,7 +211,12 @@
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() {