Index: openacs-4/packages/calendar/www/view-month-display.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/calendar/www/view-month-display.tcl,v diff -u -r1.29 -r1.29.2.1 --- openacs-4/packages/calendar/www/view-month-display.tcl 20 Mar 2018 08:49:09 -0000 1.29 +++ openacs-4/packages/calendar/www/view-month-display.tcl 10 Nov 2022 13:15:02 -0000 1.29.2.1 @@ -209,7 +209,9 @@ add_body_script -script [subst { var e = document.getElementById('month-calendar-$current_day_ansi'); e.addEventListener('click', function (event) { - location.href = '$add_url'; + if (event.target.className == 'cal-month-day') { + location.href = '$add_url'; + } }); e.addEventListener('keypress', function (event) { event.preventDefault(); @@ -255,16 +257,6 @@ [lc_time_fmt $current_day_ansi %w] \ month-calendar-$current_day_ansi - add_body_script -script [subst { - var e = document.getElementById('month-calendar-$current_day_ansi'); - e.addEventListener('click', function (event) { - location.href = '$add_url'; - }); - e.addEventListener('keypress', function (event) { - event.preventDefault(); - acs_KeypressGoto('$add_url',event); - }); - }] } if { !$exporting_p } {