From 6bd91ddffe86ebeb10420f05a232f8e779eaf86d Mon Sep 17 00:00:00 2001 From: Dieter Hametner Date: Sun, 29 Jul 2007 17:41:38 +0000 Subject: - Made vdr ajax requests work also via a static page. This is for browsers that don't support javascript (e.g. PDA browsers) - Implemented for AJAX request a visual notification how requested action performed. - Adapted styles for this. - Moded images for rounded boxes (formerly tip-hint-??.png) to central image directory and renamed them according to their color. This makes them reusable in different themes. - Adapted themes to this move. --- tntconfig.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'tntconfig.cpp') diff --git a/tntconfig.cpp b/tntconfig.cpp index fc4217b..28ad521 100644 --- a/tntconfig.cpp +++ b/tntconfig.cpp @@ -37,16 +37,20 @@ void TntConfig::WriteConfig() // XXX modularize file << "MapUrl ^/$ login@" << endl; + // the following redirects vdr_request URL to the component + // specified by the action parameter. + file << "MapUrl ^/vdr_request/([^.]+) $1@" << 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 // rule where a image is found, terminates the search. // 1. /themes//img/. - // 2. /dist/img/. + // 2. /img/. // 3. . (builtin images) file << "MapUrl ^/themes/([^/]*)/img.*/(.+)\\.(.+) content@ themes/$1/img/$2.$3 image/$3" << endl; - file << "MapUrl ^/themes/([^/]*)/img.*/(.+)\\.(.+) content@ common/img/$2.$3 image/$3" << endl; + file << "MapUrl ^/themes/([^/]*)/img.*/(.+)\\.(.+) content@ img/$2.$3 image/$3" << endl; file << "MapUrl ^/themes/([^/]*)/img.*/(.+)\\.(.+) $2@" << endl; // Epg images -- cgit v1.2.3