Index: openacs-4/packages/xowiki/www/portlets/weblog-mini-calendar.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/xowiki/www/portlets/weblog-mini-calendar.tcl,v diff -u -r1.18.2.3 -r1.18.2.4 --- openacs-4/packages/xowiki/www/portlets/weblog-mini-calendar.tcl 11 Sep 2016 00:04:27 -0000 1.18.2.3 +++ openacs-4/packages/xowiki/www/portlets/weblog-mini-calendar.tcl 11 Sep 2016 00:08:52 -0000 1.18.2.4 @@ -155,13 +155,16 @@ set class inactive } set url [export_vars -base $base_url {{date $ansi_date} summary}] + set id minicalendar-$ansi_date - append js [subst { - document.getElementById("$id").addEventListener('click', function (event) { - event.preventDefault(); - window.location.href="$url"; - return false; - }); + if {$count > 0) { + append js [subst { + document.getElementById('$id').addEventListener('click', function (event) { + event.preventDefault(); + window.location.href='$url'; + return false; + }); + } }] multirow append days $day_number $beginning_of_week_p $end_of_week_p $today_p $active_p \