From 93ac7e9af6de6cfd4582b14d4dfe5a5549e08349 Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Thu, 11 May 2017 11:01:29 -0400 Subject: [PATCH] highlighting current month and current year to replace the today button need to remove the nav arrows and today button to clean up the ui, adding background highlighting to the current month of the current only --- css/front.css | 4 ++-- views/front/events/agenda.html | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/css/front.css b/css/front.css index e348751..9260de3 100755 --- a/css/front.css +++ b/css/front.css @@ -405,10 +405,10 @@ a.fc-time-grid-event.fc-v-event { .month-nav:hover, .year-nav:hover{ cursor: pointer; } -/*.current-date{ +.current-date{ background: #f5822a; color: white; -}*/ +} @media (max-width: 640px) and (min-width: 320px){ .view-select{ float: left; diff --git a/views/front/events/agenda.html b/views/front/events/agenda.html index b0139a9..cfa3b0c 100644 --- a/views/front/events/agenda.html +++ b/views/front/events/agenda.html @@ -297,9 +297,9 @@ $('#month-nav-container').empty(); $.each(new_months, function(index, value){ - - if(value.date == current_month.selector){ - {literal} var option = $('
', {class: 'month-nav date-highlight',text: value.name}); {/literal} + + if(value.date == current_month.selector && year === current_year.selector ){ + {literal} var option = $('
', {class: 'month-nav date-highlight current-date',text: value.name}); {/literal} } else { {literal} var option = $('
', {class: 'month-nav',text: value.name}); {/literal} } -- 2.17.1