From 3f68c19491d9380cee81fde12185ccb6512fc99d Mon Sep 17 00:00:00 2001 From: chiu Date: Fri, 14 Aug 2020 22:46:46 +0800 Subject: [PATCH] fix error --- app/assets/javascripts/calendar_widget2.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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') }