Bugfix: If a named submit button was clicked multiple times, the name wasn't sent in 2nd ... nth time.

This commit is contained in:
frietsch 2011-10-31 13:53:01 +01:00 committed by John Bender
parent b051c3203e
commit c824b16816

View file

@ -53,7 +53,7 @@ $.widget( "mobile.button", $.mobile.widget, {
.insertBefore( $el );
// Bind to doc to remove after submit handling
$( document ).submit(function(){
$( document ).one("submit", function(){
$buttonPlaceholder.remove();
$buttonPlaceholder = undefined;
});