From: Anthony Talarico Date: Fri, 11 Dec 2015 13:51:49 +0000 (-0500) Subject: testing top bar return false to stop links X-Git-Tag: v1.0.0^2~33 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=2930257521e92d3e15c94fc68cb165ef260ee8b1;p=WP-Themes%2Fstaffords.git testing top bar return false to stop links --- diff --git a/js/app.js b/js/app.js index 2ee98a0..de9329d 100644 --- a/js/app.js +++ b/js/app.js @@ -199,11 +199,14 @@ $(document).ready(function () { $("#properties .top-bar .top-bar-section ul#menu-properties li ul.dropdown li a").mouseout(function () { $("#properties .top-bar .top-bar-section ul#menu-properties #menu-item-1517 > a").css("box-shadow", "0px -7px 10px -9px rgba(0, 0, 0, 0.5) inset"); }); - $("a:contains('Stay')").attr("href", "#"); - $("a:contains('Dine')").attr("href", "#"); - $("a:contains('Explore')").attr("href", "#"); - $("a:contains('Play')").attr("href", "#"); - $(".parent-link a:contains('Our Properties')").text("Stafford's Home"); + $("#long-bar section.top-bar-section ul#menu-front-menu > li > a").on("click", function (e) { + e.preventDefault(); + return false; + }); +// $("a:contains('Dine')").attr("href", "#"); +// $("a:contains('Explore')").attr("href", "#"); +// $("a:contains('Play')").attr("href", "#"); +// $(".parent-link a:contains('Our Properties')").text("Stafford's Home"); // the following functions handle tablet view drop down menus being treated as pc view hover menus diff --git a/js/custom/pageSetup.js b/js/custom/pageSetup.js index 156870c..0f4a035 100644 --- a/js/custom/pageSetup.js +++ b/js/custom/pageSetup.js @@ -190,11 +190,14 @@ $(document).ready(function () { $("#properties .top-bar .top-bar-section ul#menu-properties li ul.dropdown li a").mouseout(function () { $("#properties .top-bar .top-bar-section ul#menu-properties #menu-item-1517 > a").css("box-shadow", "0px -7px 10px -9px rgba(0, 0, 0, 0.5) inset"); }); - $("a:contains('Stay')").attr("href", "#"); - $("a:contains('Dine')").attr("href", "#"); - $("a:contains('Explore')").attr("href", "#"); - $("a:contains('Play')").attr("href", "#"); - $(".parent-link a:contains('Our Properties')").text("Stafford's Home"); + $("#long-bar section.top-bar-section ul#menu-front-menu > li > a").on("click", function (e) { + e.preventDefault(); + return false; + }); +// $("a:contains('Dine')").attr("href", "#"); +// $("a:contains('Explore')").attr("href", "#"); +// $("a:contains('Play')").attr("href", "#"); +// $(".parent-link a:contains('Our Properties')").text("Stafford's Home"); // the following functions handle tablet view drop down menus being treated as pc view hover menus