mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-03-16 22:10:25 +00:00
changed to event.preventDefault
This commit is contained in:
parent
0972d65e04
commit
facef32f3a
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue