Skip to content

Instantly share code, notes, and snippets.

@gterrill
Last active October 12, 2015 04:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gterrill/3969734 to your computer and use it in GitHub Desktop.
Save gterrill/3969734 to your computer and use it in GitHub Desktop.
Fix for submenus on iOS 6
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