Created
May 14, 2012 16:34
-
-
Save brandonrosage/2694957 to your computer and use it in GitHub Desktop.
jQuery Mobile: Ensure clicks aren't recorded in history
This file contains 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
$(document).bind("pagecreate", function() { | |
$("ul#tabs-menu li a").click(function () { | |
alert('The code fired!'); | |
var url = $(this).attr('data-url'); | |
$.mobile.changePage(url, { | |
transition: "none", | |
reverse: false, | |
changeHash: false | |
}); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment