diff --git a/web/themes/asc_bootstrap/js/scripts.js b/web/themes/asc_bootstrap/js/scripts.js index 67853acca508216f60047403bb45760a7ae8206a..29f1176890c7e1d1fc76c0e8126b2084841cc5f0 100644 --- a/web/themes/asc_bootstrap/js/scripts.js +++ b/web/themes/asc_bootstrap/js/scripts.js @@ -8,7 +8,6 @@ jQuery(document).ready(function(){ jQuery(".path-people .main-container aside").css({'height':(jQuery(".path-people .main-container section").height()+'px')}); } - //adds fontawesome arrow to menu //check if is iPhone @@ -97,6 +96,13 @@ jQuery(document).ready(function(){ jQuery('section.col-sm-9').addClass('col-sm-pull-3'); }*/ + //redirect if mobile for people directory main page + if(((window.location.pathname == '/people')||(window.location.pathname == '/directory')) && (jQuery(window).width() <= 740)) { + document.location = "people-mobile"; + } + + + //sidebar arrows if (jQuery(".sidebar-nav .active-trail").length) { jQuery(".sidebar-nav .active-trail").find("i").removeClass('fa-angle-right').addClass( 'fa-angle-down' ); }