Skip to content
This repository
Browse code

Button widget: Rewrote code that adds class ui-submit. Fixes #4642 - …

…submit button in header renders incorrectly [1.1.2.]
  • Loading branch information...
commit 866bb5da445e07fc8c977e860064db3a24dc2d2d 1 parent 5fbf425
Jasper de Groot authored July 04, 2012

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  js/widgets/forms/button.js
2  js/widgets/forms/button.js
@@ -58,7 +58,7 @@ $.widget( "mobile.button", $.mobile.widget, {
58 58
 		}
59 59
 
60 60
 		if(  $el.attr( "type" ) === "submit" || $el.attr( "type" ) === "reset" ) {
61  
-			classes += "ui-submit";
  61
+			classes ? classes += " ui-submit" :  classes = "ui-submit";
62 62
 		}
63 63
 		$( "label[for='" + $el.attr( "id" ) + "']" ).addClass( "ui-submit" );
64 64
 

0 notes on commit 866bb5d

Please sign in to comment.
Something went wrong with that request. Please try again.