Permalink
Browse files

Bugfix: If a named submit button was clicked multiple times, the name…

… wasn't sent in 2nd ... nth time.
  • Loading branch information...
1 parent 73508f1 commit b051c3203ecf51c6e42dcccf65a3ebbf49e671cd @oliver-frietsch oliver-frietsch committed with johnbender Oct 28, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 js/jquery.mobile.forms.button.js
@@ -54,7 +54,8 @@ $.widget( "mobile.button", $.mobile.widget, {
// Bind to doc to remove after submit handling
$( document ).submit(function(){
- $buttonPlaceholder.remove();
+ $buttonPlaceholder.remove();
+ $buttonPlaceholder = undefined;
});
}
});

0 comments on commit b051c32

Please sign in to comment.