diff --git a/app/assets/javascripts/calendar_widget.js b/app/assets/javascripts/calendar_widget.js index 9419fb2..0f7c18c 100644 --- a/app/assets/javascripts/calendar_widget.js +++ b/app/assets/javascripts/calendar_widget.js @@ -369,7 +369,7 @@ } }) if (!toggle_data){ - if (dom.find('td.w-calendar-today').length != 0){ + 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') diff --git a/app/assets/javascripts/calendar_widget2.js b/app/assets/javascripts/calendar_widget2.js index 4de987b..2442ca4 100644 --- a/app/assets/javascripts/calendar_widget2.js +++ b/app/assets/javascripts/calendar_widget2.js @@ -509,7 +509,7 @@ }) if (!toggle_data){ if (dom.find('td.w-calendar-today').length != 0){ - toggle_event(dom.find('td.w-calendar-today'),'show') + toggle_event(dom.find('td.w-calendar-event.w-calendar-today'),'show') }else{ toggle_event(dom.find('td'),'hide') }