From 47f9a3b7dc7a7dd68831e031bf51bd65cecc27d4 Mon Sep 17 00:00:00 2001 From: Richard Worth Date: Sat, 24 Jan 2009 14:05:00 +0000 Subject: [PATCH] demos: view source cleanup --- demos/index.html | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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() {