From b051c3203ecf51c6e42dcccf65a3ebbf49e671cd Mon Sep 17 00:00:00 2001 From: frietsch Date: Fri, 28 Oct 2011 17:30:58 +0300 Subject: [PATCH] Bugfix: If a named submit button was clicked multiple times, the name wasn't sent in 2nd ... nth time. --- js/jquery.mobile.forms.button.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/jquery.mobile.forms.button.js b/js/jquery.mobile.forms.button.js index a8bad655..4b404a3e 100644 --- a/js/jquery.mobile.forms.button.js +++ b/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; }); } });