From 477df62cab1f276fc7f0cdf54fcc2ff5ab160faf Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Fri, 12 May 2017 11:31:51 -0400 Subject: [PATCH] fixing mobile view check to override view to agenda in mobile adjusted the checking in the events list page to check if the user is in mobile view to override the view to agenda in mobile view --- views/front/events/agenda.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/views/front/events/agenda.html b/views/front/events/agenda.html index 973d1b1..759ade9 100644 --- a/views/front/events/agenda.html +++ b/views/front/events/agenda.html @@ -156,7 +156,7 @@ return false; } } - console.log(in_mobile()); + months = JSON.parse(months); // console.log(sessionStorage.view + " : " + sessionStorage.override); @@ -166,9 +166,9 @@ if( sessionStorage.view && sessionStorage.override === 'no' && !in_mobile()){ view = sessionStorage.view; - } else if( sessionStorage.override === 'yes'){ + } else if( sessionStorage.override === 'yes' || in_mobile()){ view = 'agenda'; - } + } // AJAX FUNCTION ************************************************ // Get calendar month via AJAX -- 2.17.1