From 5b6172c354f77479c5186b32fa88fcb9badc6108 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Thu, 19 Dec 2013 03:46:38 +0000 Subject: [PATCH] fixed app.css loading to work with minifying of css --- calendar/js/navigation.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/calendar/js/navigation.js b/calendar/js/navigation.js index 19a356f3f6..c92959b42e 100644 --- a/calendar/js/navigation.js +++ b/calendar/js/navigation.js @@ -48,15 +48,15 @@ var calendar_window = egw_appWindow('calendar'); // include template specific app.css var link_tags = calendar_window.document.getElementsByTagName('link'); - var cal_app_css = /\/calendar\/templates\/[^/]+\/app.css/; + var cal_app_css = /calendar\/templates\/[^/]+\/app.css/; for(var i=0; i < link_tags.length; i++) // include template specific app.css - { - var href = link_tags[i].href; - if (cal_app_css.test(href)) + { + var href = cal_app_css.exec(link_tags[i].href); + if (href) { //alert('loading into top window: '+href); - egw(calendar_window.top).includeCSS(href); + egw(calendar_window.top).includeCSS(egw_webserverUrl+'/'+href[0]); return true; } }