From b929e98947fc406f6e5f5be625e67f732e7f188e Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Tue, 6 Oct 2015 15:56:27 +0000 Subject: [PATCH] Include app-[theme].css for calendar navigation --- calendar/js/navigation.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/calendar/js/navigation.js b/calendar/js/navigation.js index ec9ab3ad3b..0176a7989f 100644 --- a/calendar/js/navigation.js +++ b/calendar/js/navigation.js @@ -52,7 +52,8 @@ 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 str_regex = "calendar\/templates\/[^/]+\/(app.css|app-"+ egw.preference('theme', 'common') +".css)"; + var cal_app_css = new RegExp(str_regex, 'g'); for(var i=0; i < link_tags.length; i++) // include template specific app.css {