summaryrefslogtreecommitdiff
path: root/tntconfig.cpp
diff options
context:
space:
mode:
authorDieter Hametner <dh (plus) vdr (at) gekrumbel (dot) de>2007-06-22 21:38:45 +0000
committerDieter Hametner <dh (plus) vdr (at) gekrumbel (dot) de>2007-06-22 21:38:45 +0000
commitd9e1b706df7ebcb0fa7e7e716291f9c88aad6a24 (patch)
treecc8464e145ca39021d2dbc81bb8d5969b47ed947 /tntconfig.cpp
parent14141f08e8ae6fddb8215de51ce56972dfbb6ff4 (diff)
downloadvdr-plugin-live-d9e1b706df7ebcb0fa7e7e716291f9c88aad6a24.tar.gz
vdr-plugin-live-d9e1b706df7ebcb0fa7e7e716291f9c88aad6a24.tar.bz2
- Introducing Mootools as base javascript library.
- ported Infobox javascript code to this library. - LiveSimpleAjaxRequest uses Ajax-Object from mootools. - Start of distribution of javascript in source form (not compiled into the live binary).
Diffstat (limited to 'tntconfig.cpp')
-rw-r--r--tntconfig.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/tntconfig.cpp b/tntconfig.cpp
index b38865c..1a70aea 100644
--- a/tntconfig.cpp
+++ b/tntconfig.cpp
@@ -35,6 +35,8 @@ void TntConfig::WriteConfig()
// XXX modularize
file << "MapUrl ^/$ login@" << endl;
+
+ // the following selects the theme specific 'theme.css' file
file << "MapUrl ^/themes/([^/]*)/css.*/(.+\\.css) content@ themes/$1/css/$2 text/css" << endl;
// the following rules provide a search scheme for images. The first
@@ -46,6 +48,9 @@ void TntConfig::WriteConfig()
file << "MapUrl ^/themes/([^/]*)/img.*/(.+)\\.(.+) content@ common/img/$2.$3 image/$3" << endl;
file << "MapUrl ^/themes/([^/]*)/img.*/(.+)\\.(.+) $2@" << endl;
+ // select additional (not build in) javascript.
+ file << "MapUrl ^/js([^.]*/)(.*\\.js) content@ js$1$2 text/javascript" << endl;
+
file << "MapUrl ^/css.*/(.+) content@ css/$1 text/css" << endl;
file << "MapUrl /([^/]+/.+) content@ $1" << endl;
file << "MapUrl /([^.]+)(\\..+)? $1@" << endl;