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
return false;
}
}
- console.log(in_mobile());
+
months = JSON.parse(months);
// console.log(sessionStorage.view + " : " + sessionStorage.override);
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