Skip to content
This repository has been archived by the owner on Oct 8, 2021. It is now read-only.

Commit

Permalink
Button widget: Rewrote code that adds class ui-submit. Fixes #4642 - …
Browse files Browse the repository at this point in the history
…submit button in header renders incorrectly [1.1.2.]
  • Loading branch information
jaspermdegroot committed Jul 4, 2012
1 parent 5fbf425 commit 866bb5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/widgets/forms/button.js
Expand Up @@ -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" );

Expand Down

0 comments on commit 866bb5d

Please sign in to comment.