From ec750ac330774251722b1e0406127de9917e879a Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Tue, 9 Dec 2014 17:55:00 +0000 Subject: [PATCH] Fix missing event creation click handler on non-et2 home views --- calendar/inc/class.calendar_favorite_portlet.inc.php | 6 ++++++ calendar/templates/default/app.css | 1 + calendar/templates/pixelegg/app.css | 1 + 3 files changed, 8 insertions(+) diff --git a/calendar/inc/class.calendar_favorite_portlet.inc.php b/calendar/inc/class.calendar_favorite_portlet.inc.php index c3d40645e5..f194fc33d6 100644 --- a/calendar/inc/class.calendar_favorite_portlet.inc.php +++ b/calendar/inc/class.calendar_favorite_portlet.inc.php @@ -118,7 +118,13 @@ class calendar_favorite_portlet extends home_favorite_portlet unset($GLOBALS['egw_info']['flags']['app_header']); // Force loading of CSS egw_framework::include_css_js_response(); + + // Set this to calendar so app.js gets initialized + $old_app = $GLOBALS['egw_info']['flags']['currentapp']; + $GLOBALS['egw_info']['flags']['currentapp'] = 'calendar'; + $etemplate->exec(get_called_class() .'::process',$content); + $GLOBALS['egw_info']['flags']['currentapp'] = $old_app; } /** diff --git a/calendar/templates/default/app.css b/calendar/templates/default/app.css index 91442d8ef8..ca266d9d23 100644 --- a/calendar/templates/default/app.css +++ b/calendar/templates/default/app.css @@ -670,6 +670,7 @@ img.calendar_print_button, img.calendar_print_appicon { /** * Home page portlets */ +.calendar_favorite_portlet .calendar_calMonthNavHeader a img, .calendar_favorite_portlet .calendar_calWeekNavHeader a img, .calendar_favorite_portlet .calendar_calDayColHeader a img, .calendar_favorite_portlet .calendar_plannerScale a img{ diff --git a/calendar/templates/pixelegg/app.css b/calendar/templates/pixelegg/app.css index 8b1306c6ed..19a4b1839e 100755 --- a/calendar/templates/pixelegg/app.css +++ b/calendar/templates/pixelegg/app.css @@ -678,6 +678,7 @@ img.calendar_print_appicon { /** * Home page portlets */ +.calendar_favorite_portlet .calendar_calMonthNavHeader a img, .calendar_favorite_portlet .calendar_calWeekNavHeader a img, .calendar_favorite_portlet .calendar_calDayColHeader a img, .calendar_favorite_portlet .calendar_plannerScale a img {