Created
December 3, 2012 13:16
-
-
Save yoshifumi0521/4194991 to your computer and use it in GitHub Desktop.
RailsにjQueryMobileにつんだら、ページ遷移で挙動がおかしくなったので、ページ遷移のtransisionを無効にしてみた。
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.0.1/jquery.mobile-1.0.1.min.css" /> | |
<%= javascript_include_tag "application" %> | |
<script src="http://code.jquery.com/jquery-1.6.4.min.js"></script> | |
<script> | |
$(document).bind("mobileinit", function(){ | |
$.mobile.ajaxLinksEnabled = false; // Ajax を使用したページ遷移を無効にする | |
$.mobile.ajaxFormsEnabled = false; // Ajax を使用したフォーム遷移を無効にする | |
}); | |
</script> | |
<script src="http://code.jquery.com/mobile/1.0.1/jquery.mobile-1.0.1.min.js"></script> | |
<%= csrf_meta_tags %> | |
</head> | |
<body> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment