preventing scrolling on the photo grid jquery tabs, when clicked
authorAnthony Talarico <talarico@gaslightmedia.com>
Fri, 11 Jan 2019 20:15:19 +0000 (15:15 -0500)
committerAnthony Talarico <talarico@gaslightmedia.com>
Fri, 11 Jan 2019 20:15:19 +0000 (15:15 -0500)
js/app.js
js/custom/pageSetup.js
parts/frontpage-masonry.php

index 25f15dc..bace803 100644 (file)
--- a/js/app.js
+++ b/js/app.js
@@ -161,11 +161,6 @@ $(document).ready(function () {
         }
     });
     $(function(){$(".scroll").click(function(){$("html,body").animate({scrollTop:$("#glm-main-header").offset().top},"1000");return false})})
-
-    $(".season-tab").on("click",function(e){
-        e.preventDefault();
-      
-    })
 });;jQuery(function($){
    
         if($(document).scrollTop() > 0){
index 7921558..358d18b 100644 (file)
@@ -49,9 +49,4 @@ $(document).ready(function () {
         }
     });
     $(function(){$(".scroll").click(function(){$("html,body").animate({scrollTop:$("#glm-main-header").offset().top},"1000");return false})})
-
-    $(".season-tab").on("click",function(e){
-        e.preventDefault();
-      
-    })
 });
\ No newline at end of file
index 2969be3..bb1f4e2 100644 (file)
 </div>
 <script>
     jQuery( function($) {
-        $( "#season-tabs" ).tabs();
-  } );
+        $("#season-tabs").tabs();
+    
+        $('.season-tab').on("click",function(e){
+            e.preventDefault();
+            e.stopImmediatePropagation();
+        });
+    } );
 </script>
\ No newline at end of file