Created
April 4, 2012 03:58
-
-
Save oraculum/2297616 to your computer and use it in GitHub Desktop.
Force page reload when form method="post" in jquery mobile
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
| // coloque os scripts nessa ordem no seu arquivo .jade | |
| script(src="http://code.jquery.com/jquery-1.6.4.min.js") | |
| script(type="text/javascript", src="/js/custom.mobile.js") | |
| script(src="http://code.jquery.com/mobile/latest/jquery.mobile.min.js") | |
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
| // custom.mobile.js aqui está a mágica desabilitar o ajax do JQM | |
| $(document).bind("mobileinit", function(){ | |
| $.mobile.ajaxEnabled = false; | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment