mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-04-20 06:10:59 +00:00
Clarified data-ajax=false on forms. Fixes #1134
This commit is contained in:
parent
b9d0349975
commit
09ffa3aa5f
1 changed files with 3 additions and 2 deletions
|
|
@ -612,10 +612,11 @@
|
|||
/* Event Bindings - hashchange, submit, and click */
|
||||
|
||||
//bind to form submit events, handle with Ajax
|
||||
$( "form[data-ajax!='false']" ).live('submit', function(event){
|
||||
$( "form" ).live('submit', function(event){
|
||||
if( !$.mobile.ajaxEnabled ||
|
||||
//TODO: deprecated - remove at 1.0
|
||||
!$.mobile.ajaxFormsEnabled ){ return; }
|
||||
!$.mobile.ajaxFormsEnabled ||
|
||||
$(this).is( "[data-ajax='false']" ) ){ return; }
|
||||
|
||||
var type = $(this).attr("method"),
|
||||
url = path.clean( $(this).attr( "action" ) );
|
||||
|
|
|
|||
Loading…
Reference in a new issue