Make detail content sections only expand on pc view
authorLaury GvR <laury@gaslightmedia.com>
Tue, 16 Jan 2018 20:10:59 +0000 (15:10 -0500)
committerLaury GvR <laury@gaslightmedia.com>
Tue, 16 Jan 2018 20:10:59 +0000 (15:10 -0500)
glm-member-db/views/front/members/detail.html

index a450569..8684e88 100644 (file)
 
         jQuery(document).ready(function($) {
 
-            // This opens all detail content sections and sets the fullprofile button to open
-            $(".glm-member-detail-content-data").not($("#glm-member-detail-fullprofile-toggle")).slideDown(350, "swing",  function() {});
-            $(".glm-member-detail-content-toggle").addClass("selected");
-            $("#glm-member-detail-fullprofile-toggle").toggleClass("selected");
+            if ($(window).width() >= 1024) {
+                // This opens all detail content sections and sets the fullprofile button to open
+                $(".glm-member-detail-content-data").not($("#glm-member-detail-fullprofile-toggle")).slideDown(350, "swing",  function() {});
+                $(".glm-member-detail-content-toggle").addClass("selected");
+                $("#glm-member-detail-fullprofile-toggle").toggleClass("selected");
+            }
             
             // change the member detail photos grid structure depending
             var images_container = $("#glm-member-detail-images-container");