diff --git a/docs/forms/forms-sample.html b/docs/forms/forms-sample.html index e4a7b363..c0045edd 100755 --- a/docs/forms/forms-sample.html +++ b/docs/forms/forms-sample.html @@ -32,8 +32,7 @@ - - + diff --git a/js/jquery.mobile.forms.button.js b/js/jquery.mobile.forms.button.js index d614289c..ef8a910c 100644 --- a/js/jquery.mobile.forms.button.js +++ b/js/jquery.mobile.forms.button.js @@ -33,12 +33,7 @@ $.widget( "mobile.button", $.mobile.widget, { .insertBefore( $el ) .click(function(){ if(!o.disabled){ - if( type == "submit" ){ - $(this).closest('form').submit(); - } - else{ - $el.click(); - } + $el.click(); } return false;