diff --git a/app/assets/javascripts/calendar_widget2.js b/app/assets/javascripts/calendar_widget2.js index dbd0c75..3dfa9d7 100644 --- a/app/assets/javascripts/calendar_widget2.js +++ b/app/assets/javascripts/calendar_widget2.js @@ -509,8 +509,8 @@ } }) if (!toggle_data){ - if (dom.find('td.w-calendar-today').length != 0){ - toggle_event(dom.find('td.w-calendar-event.w-calendar-today'),'show') + if (dom.find('td.w-calendar-event.w-calendar-today').length != 0){ + toggle_event(dom.find('td.w-calendar-today'),'show') }else{ toggle_event(dom.find('td'),'hide') }