From: Anthony Talarico Date: Fri, 22 Apr 2016 16:31:17 +0000 (-0400) Subject: fixed unclosed div and added jquery comments for $, alert etc X-Git-Tag: v1.0.0^2~80 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=6a76719799e8b38e78903500489b448f0d67a219;p=WP-Themes%2Fthinkdunes.git fixed unclosed div and added jquery comments for $, alert etc --- diff --git a/front-page.php b/front-page.php index 9c3d3f8..5114297 100644 --- a/front-page.php +++ b/front-page.php @@ -18,6 +18,7 @@
+
diff --git a/js/custom/pageSetup.js b/js/custom/pageSetup.js index 7b76e81..29d8f11 100644 --- a/js/custom/pageSetup.js +++ b/js/custom/pageSetup.js @@ -1,6 +1,8 @@ +/*global $, document, window, alert, console, require*/ // Load foundation $(document).foundation(); $(document).ready(function () { + 'use strict'; $('ul.children').each(function () { $(this).before(''); }); @@ -8,7 +10,7 @@ $(document).ready(function () { $(this).toggleClass('open'); $(this).siblings('ul').toggleClass('open'); }); - $('.top-bar-section').find('ul.sub-menu.dropdown').each(function (){ + $('.top-bar-section').find('ul.sub-menu.dropdown').each(function () { var menuImg = $(this).parent('li').prop('id'); var menuNum = menuImg.match(/\d+/)[0]; var menuImgSrc = 'img_for_menu_' + menuNum;