From c824b16816bb69f0457ee4279b86168bbfeab7eb Mon Sep 17 00:00:00 2001 From: frietsch Date: Mon, 31 Oct 2011 13:53:01 +0100 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/jquery.mobile.forms.button.js b/js/jquery.mobile.forms.button.js index 4b404a3e..d87d1879 100644 --- a/js/jquery.mobile.forms.button.js +++ b/js/jquery.mobile.forms.button.js @@ -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; });