mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-03-27 03:00:35 +00:00
default to no auto-submit events.
This commit is contained in:
parent
845549949c
commit
51f3fa2e2b
1 changed files with 3 additions and 2 deletions
|
|
@ -19,7 +19,7 @@ $.fn.autoform = function(options){
|
|||
|
||||
//extendable options
|
||||
var o = $.extend({
|
||||
submitEvents: 'change',
|
||||
submitEvents: '',
|
||||
method: $this.attr('method'),
|
||||
action: $this.attr('action'),
|
||||
injectResponse: true,//should be data-attr driven
|
||||
|
|
@ -41,7 +41,8 @@ $.fn.autoform = function(options){
|
|||
data: $(this).serialize(),
|
||||
dataFilter: o.dataFilter,
|
||||
success: function(data,textStatus){
|
||||
$('.ui-page-active .ui-content').html( $('<div></div>').append(data).mobilize() );
|
||||
$('.ui-page-active .ui-content').replaceWith( data );
|
||||
$.mobilize($('.ui-page-active .ui-content'));
|
||||
$.pageLoading(true);
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue