From: <gi...@ma...> - 2009-09-10 07:46:02
|
The branch, master has been updated via 10f17e42ab1d4a98ca9d04720c54b6c1b3e350eb (commit) from ed3bf370e7e6f23ee6fe085b8bc092ba529d4657 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit 10f17e42ab1d4a98ca9d04720c54b6c1b3e350eb Author: David Hicks <hic...@op...> Date: Thu Sep 10 17:42:45 2009 +1000 Fix #10748: Fix CSS include for jscalendar The CSS required for jscalendar was not included properly. Additionally, there was some left over code that doesn't apply to the jscalendar widget that MantisBT has been using. This useless code has been removed. ----------------------------------------------------------------------- Summary of changes: core/date_api.php | 7 ++----- 1 files changed, 2 insertions(+), 5 deletions(-) ----------------------------------------------------------------------- commit 10f17e42ab1d4a98ca9d04720c54b6c1b3e350eb Author: David Hicks <hic...@op...> Date: Thu Sep 10 17:42:45 2009 +1000 Fix #10748: Fix CSS include for jscalendar The CSS required for jscalendar was not included properly. Additionally, there was some left over code that doesn't apply to the jscalendar widget that MantisBT has been using. This useless code has been removed. diff --git a/core/date_api.php b/core/date_api.php index 5f5aa6e..279dd34 100644 --- a/core/date_api.php +++ b/core/date_api.php @@ -258,16 +258,13 @@ function print_date_selection_set( $p_name, $p_format, $p_date = 0, $p_default_d */ function date_print_calendar( $p_button_name = 'trigger' ) { if(( ON == config_get( 'dhtml_filters' ) ) && ( ON == config_get( 'use_javascript' ) ) ) { - echo "<style type=\"text/css\">@import url(/css/calendar-blue.css);</style>\n"; + echo "<style type=\"text/css\">@import url(" . config_get( 'short_path' ) . "css/calendar-blue.css);</style>\n"; html_javascript_link( 'jscalendar/calendar.js' ); html_javascript_link( 'jscalendar/lang/calendar-en.js' ); html_javascript_link( 'jscalendar/calendar-setup.js' ); $t_icon_path = config_get( 'icon_path' ); $t_cal_icon = $t_icon_path . "calendar-img.gif"; - echo "<input type=\"image\" class=\"button\" id=\"" . $p_button_name . "\" src=\""; - echo $t_cal_icon; - $t_format = config_get( 'calendar_js_date_format' ); - echo "\" onclick=\"return showCalendar ('sel1', '" . $t_format . "', 24, true)\" />"; + echo "<input type=\"image\" class=\"button\" id=\"" . $p_button_name . "\" src=\"" . $t_cal_icon . "\" />"; } } ----------------------------------------------------------------------- -- Mantis Bug Tracker |