From facef32f3a5d7afe31b3167e00d5071fe63ca3c7 Mon Sep 17 00:00:00 2001 From: scottjehl Date: Sun, 7 Nov 2010 15:17:59 -0500 Subject: [PATCH] changed to event.preventDefault --- js/jquery.mobile.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/jquery.mobile.js b/js/jquery.mobile.js index 30000d65..5041aba4 100644 --- a/js/jquery.mobile.js +++ b/js/jquery.mobile.js @@ -168,7 +168,7 @@ resetBaseURL(); //for form submission - $('form').live('submit', function(){ + $('form').live('submit', function(event){ if( !$.mobile.ajaxFormsEnabled ){ return; } var type = $(this).attr("method"), @@ -193,7 +193,7 @@ undefined, true ); - return false; + event.preventDefault(); }); //click routing - direct to HTTP or Ajax, accordingly