Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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 jaspermdegroot authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  js/widgets/forms/button.js
2  js/widgets/forms/button.js
View
@@ -58,7 +58,7 @@ $.widget( "mobile.button", $.mobile.widget, {
}
if( $el.attr( "type" ) === "submit" || $el.attr( "type" ) === "reset" ) {
- classes += "ui-submit";
+ classes ? classes += " ui-submit" : classes = "ui-submit";
}
$( "label[for='" + $el.attr( "id" ) + "']" ).addClass( "ui-submit" );
Please sign in to comment.
Something went wrong with that request. Please try again.