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