From: Anthony Talarico Date: Fri, 12 May 2017 15:31:51 +0000 (-0400) Subject: fixing mobile view check to override view to agenda in mobile X-Git-Tag: v1.6.38^2~2^2~3 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=477df62cab1f276fc7f0cdf54fcc2ff5ab160faf;p=WP-Plugins%2Fglm-member-db-events.git 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 --- 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