From: Anthony Talarico Date: Thu, 28 Jan 2016 16:44:53 +0000 (-0500) Subject: removed unused code X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=28da9c114905ba46be34295a22fb94c4e8a801c0;p=WP-Themes%2Fglmthemes%2Fsaultstemarie-theme.git removed unused code --- diff --git a/js/app.js b/js/app.js index c6e3b1d..0be6ec2 100644 --- a/js/app.js +++ b/js/app.js @@ -29,12 +29,9 @@ $(document).ready(function () { $(this).find('li.image-placeholder').parent('ul').addClass('no-image-subul'); $(this).find('li.image-placeholder').remove(); } - //console.log('ul = ' + menuImg); //console.log('menu-id = ' + menuNum); - }); - // custom js / jquery / modules var arrival_module = { init: function () { @@ -54,7 +51,6 @@ $(document).ready(function () { this.$extraDay.setDate(this.$extraDay.getDate() + 1); departure_module.$depart.datepicker("option", {minDate: new Date(this.$extraDay)}); } - }); } }; @@ -75,11 +71,9 @@ $(document).ready(function () { }); } }; - $("#arriveCal").click(function () { $("#arrive").datepicker("show"); }); - $("#departCal").click(function () { $("#depart").datepicker("show"); }); @@ -103,7 +97,6 @@ $(document).ready(function () { }); } }; - var search_module = { init: function () { this.cacheDOM(); @@ -122,7 +115,6 @@ $(document).ready(function () { search_module.$input.focus(); }); this.$mag_glass.click( function () { -// e.preventDefault(); search_module.$form.submit(); }); this.$input.blur(function () { @@ -136,10 +128,10 @@ $(document).ready(function () { arrival_module.init(); search_module.init(); $(".search_result_context").children("br").remove(); - - - -var extraDay, end, arrival, currentDate, currentDate2, requiredDate, requiredDate1, minDays, departure, stay, d, dd, m, y; + + var extraDay, end, arrival, currentDate, currentDate2, + requiredDate, requiredDate1, minDays, departure, + stay, d, dd, m, y; $(document).on('change', '#arriveOff', function () { currentDate = $("#arriveOff").val(); currentDate = new Date(currentDate); @@ -169,7 +161,6 @@ var extraDay, end, arrival, currentDate, currentDate2, requiredDate, requiredDat minDays = $("#arriveOff").attr("min"); $("#arriveOff").val(minDays); } - }); // restrict departure date /////////////////////////////// $(document).on('change', '#departOff', function () { @@ -181,7 +172,6 @@ var extraDay, end, arrival, currentDate, currentDate2, requiredDate, requiredDat $("#departOff").val(minDays); } }); - $('#block-1, #block-2, #block-3').bind('click tap', function(){ if($(window).width() <= 1024){ $(this).toggleClass('front-page-blocks'); @@ -207,10 +197,8 @@ var extraDay, end, arrival, currentDate, currentDate2, requiredDate, requiredDat $($topMenuLink).css("font-size", "16px"); $($topMenuLink).css("padding", "10px 5px"); }); - $($topMenu).each(function () { $(this).removeClass("active") ; }); - $("#menu-top-menu-1").children("li:nth-child(2)").children("a:nth-child(1)").addClass("offCanvasLinks"); }); diff --git a/js/custom/pageSetup.js b/js/custom/pageSetup.js index 057014e..f9db19f 100644 --- a/js/custom/pageSetup.js +++ b/js/custom/pageSetup.js @@ -20,12 +20,9 @@ $(document).ready(function () { $(this).find('li.image-placeholder').parent('ul').addClass('no-image-subul'); $(this).find('li.image-placeholder').remove(); } - //console.log('ul = ' + menuImg); //console.log('menu-id = ' + menuNum); - }); - // custom js / jquery / modules var arrival_module = { init: function () { @@ -45,7 +42,6 @@ $(document).ready(function () { this.$extraDay.setDate(this.$extraDay.getDate() + 1); departure_module.$depart.datepicker("option", {minDate: new Date(this.$extraDay)}); } - }); } }; @@ -66,11 +62,9 @@ $(document).ready(function () { }); } }; - $("#arriveCal").click(function () { $("#arrive").datepicker("show"); }); - $("#departCal").click(function () { $("#depart").datepicker("show"); }); @@ -94,7 +88,6 @@ $(document).ready(function () { }); } }; - var search_module = { init: function () { this.cacheDOM(); @@ -113,7 +106,6 @@ $(document).ready(function () { search_module.$input.focus(); }); this.$mag_glass.click( function () { -// e.preventDefault(); search_module.$form.submit(); }); this.$input.blur(function () { @@ -127,10 +119,10 @@ $(document).ready(function () { arrival_module.init(); search_module.init(); $(".search_result_context").children("br").remove(); - - - -var extraDay, end, arrival, currentDate, currentDate2, requiredDate, requiredDate1, minDays, departure, stay, d, dd, m, y; + + var extraDay, end, arrival, currentDate, currentDate2, + requiredDate, requiredDate1, minDays, departure, + stay, d, dd, m, y; $(document).on('change', '#arriveOff', function () { currentDate = $("#arriveOff").val(); currentDate = new Date(currentDate); @@ -160,7 +152,6 @@ var extraDay, end, arrival, currentDate, currentDate2, requiredDate, requiredDat minDays = $("#arriveOff").attr("min"); $("#arriveOff").val(minDays); } - }); // restrict departure date /////////////////////////////// $(document).on('change', '#departOff', function () { @@ -172,7 +163,6 @@ var extraDay, end, arrival, currentDate, currentDate2, requiredDate, requiredDat $("#departOff").val(minDays); } }); - $('#block-1, #block-2, #block-3').bind('click tap', function(){ if($(window).width() <= 1024){ $(this).toggleClass('front-page-blocks'); @@ -198,10 +188,8 @@ var extraDay, end, arrival, currentDate, currentDate2, requiredDate, requiredDat $($topMenuLink).css("font-size", "16px"); $($topMenuLink).css("padding", "10px 5px"); }); - $($topMenu).each(function () { $(this).removeClass("active") ; }); - $("#menu-top-menu-1").children("li:nth-child(2)").children("a:nth-child(1)").addClass("offCanvasLinks"); });