Created
October 17, 2012 22:15
-
-
Save figureone/3908680 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
paul@webdev:/var/www/coe-external/sites/all/themes/zen_coe$ git diff js/script.js | |
diff --git a/js/script.js b/js/script.js | |
index 905f635..be1078c 100644 | |
--- a/js/script.js | |
+++ b/js/script.js | |
@@ -403,7 +403,10 @@ jQuery(function($) { | |
// JKH 08152012 - Disable top level links in horizontal menu for touch devices | |
if (Modernizr.touch){ | |
- $("#navigation ul.menu > li > a").removeAttr('href'); | |
+ $("#navigation ul.menu > li:first-child").removeAttr('href'); | |
+ if($("#navigation ul.menu > li:first-child")) { | |
+ return false; | |
+ } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment