From: Anthony Talarico Date: Thu, 10 Dec 2015 19:22:49 +0000 (-0500) Subject: removing title class from dropdown X-Git-Tag: v1.0.0^2~57 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=3a60d6b04c58b042c101966c186f0565e62c16cf;p=WP-Themes%2Fstaffords.git removing title class from dropdown --- diff --git a/js/app.js b/js/app.js index b9dd7f2..4e05b7c 100644 --- a/js/app.js +++ b/js/app.js @@ -205,9 +205,7 @@ $(document).ready(function () { $("a:contains('Play')").attr("href", "#"); $(".parent-link a:contains('Our Properties')").text("Stafford's Home"); $("#about .top-bar .top-bar-section ul#menu-about-staffords li#menu-item-1885").on("click",function () { - if($(".title.back.js-generated").length){ - $(".title.back.js-generated").remove(); - } + $(".title.back.js-generated").remove(); $("#about .top-bar .top-bar-section ul#menu-about-staffords li#menu-item-1885 a").append("
  • Back
  • "); }); }); diff --git a/js/custom/pageSetup.js b/js/custom/pageSetup.js index 4b5f5ed..1523299 100644 --- a/js/custom/pageSetup.js +++ b/js/custom/pageSetup.js @@ -196,9 +196,7 @@ $(document).ready(function () { $("a:contains('Play')").attr("href", "#"); $(".parent-link a:contains('Our Properties')").text("Stafford's Home"); $("#about .top-bar .top-bar-section ul#menu-about-staffords li#menu-item-1885").on("click",function () { - if($(".title.back.js-generated").length){ - $(".title.back.js-generated").remove(); - } + $(".title.back.js-generated").remove(); $("#about .top-bar .top-bar-section ul#menu-about-staffords li#menu-item-1885 a").append("
  • Back
  • "); }); });