diff -N -a --unified -r mantisbt/bug_change_status_page.php mantisbt-calendar_position/bug_change_status_page.php --- mantisbt/bug_change_status_page.php 2008-11-30 14:16:41.000000000 -0500 +++ mantisbt-calendar_position/bug_change_status_page.php 2008-12-01 13:26:09.285884800 -0500 @@ -179,7 +179,7 @@ "; - date_print_calendar(); + date_print_calendar( "due_date", "due_date_calendar_trigger" ); ?> diff -N -a --unified -r mantisbt/bug_report_advanced_page.php mantisbt-calendar_position/bug_report_advanced_page.php --- mantisbt/bug_report_advanced_page.php 2008-11-30 14:16:41.000000000 -0500 +++ mantisbt-calendar_position/bug_report_advanced_page.php 2008-12-01 13:26:36.128088600 -0500 @@ -237,7 +237,7 @@ "; - date_print_calendar(); + date_print_calendar( "due_date", "due_date_calendar_trigger" ); ?> diff -N -a --unified -r mantisbt/core/date_api.php mantisbt-calendar_position/core/date_api.php --- mantisbt/core/date_api.php 2008-11-30 14:16:41.000000000 -0500 +++ mantisbt-calendar_position/core/date_api.php 2008-12-01 13:27:02.814051400 -0500 @@ -165,8 +165,7 @@ # prints calendar icon and adds required javascript files. # button_name is name of button that will display calendar icon # in caste there are more than one calendar on page -function date_print_calendar( $p_button_name = 'trigger' ) { - +function date_print_calendar ( $p_field_name, $p_button_name = 'trigger' ) { # @@@ (thraxisp) this may want a browser check ( MS IE >= 5.0, Mozilla >= 1.0, Safari >=1.2, ...) if(( ON == config_get( 'dhtml_filters' ) ) && ( ON == config_get( 'use_javascript' ) ) ) { echo "\n"; @@ -180,7 +179,19 @@ $t_format = config_get( 'short_date_format' ); $t_new_format = str_replace( '-', '-%', $t_format ); $t_format = "%" . $t_new_format; - echo "\" onClick=\"return showCalendar ('sel1', '" . $t_format . "', 24, true)\" />"; + #echo "\" onClick=\"return showCalendar ('sel1', '".$t_format."', 24, true)\" />"; + echo "\" />"; + ?> + +