From c504db205db703db18352459128734c3a902b5e0 Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Thu, 9 Nov 2017 09:48:26 -0500 Subject: [PATCH] js to scroll to top of page when off canvas btn is clicked fixing the off canvas action item grid and adding js that will scroll the page to the top when the oc btn is clicked --- js/app.js | 4 +++- js/custom/pageSetup.js | 4 +++- sections/off-canvas.php | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/js/app.js b/js/app.js index ef8bb46..ec8fa66 100644 --- a/js/app.js +++ b/js/app.js @@ -49,5 +49,7 @@ $(document).ready(function () { if(/venues/.test(loc)) { $('#dropdown-venues > li').addClass('active'); } - + $('section.left-small').on("click", function(){ + window.scrollTo(0, 0); + }) }); diff --git a/js/custom/pageSetup.js b/js/custom/pageSetup.js index f0c1a69..baefe6b 100644 --- a/js/custom/pageSetup.js +++ b/js/custom/pageSetup.js @@ -40,5 +40,7 @@ $(document).ready(function () { if(/venues/.test(loc)) { $('#dropdown-venues > li').addClass('active'); } - + $('section.left-small').on("click", function(){ + window.scrollTo(0, 0); + }) }); diff --git a/sections/off-canvas.php b/sections/off-canvas.php index 0b3b961..b99e422 100644 --- a/sections/off-canvas.php +++ b/sections/off-canvas.php @@ -34,7 +34,7 @@
-