Last active
October 12, 2015 04:18
-
-
Save gterrill/3969734 to your computer and use it in GitHub Desktop.
Fix for submenus on iOS 6
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
if (navigator.userAgent.match(/(iPad|iPhone|iPod)/g)) { | |
$('a.sf-with-ul').each(function() { | |
$(this).attr('data-clicked', 'false'); | |
$(this).click(function(e) { | |
if ($(this).attr('data-clicked') === 'false') { | |
e.preventDefault(); | |
$(this).attr('data-clicked', 'true'); | |
return false; | |
} | |
return true; | |
}) | |
}) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment