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

Commit

Permalink
Quality: Fixed lints
Browse files Browse the repository at this point in the history
Picked from 5c6d1d6
  • Loading branch information
gseguin committed Mar 6, 2013
1 parent 972b6a1 commit ad59ed8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion js/widgets/forms/button.js
Expand Up @@ -66,7 +66,11 @@ $.widget( "mobile.button", $.mobile.widget, {
}

if ( $el.attr( "type" ) === "submit" || $el.attr( "type" ) === "reset" ) {
classes ? classes += " ui-submit" : classes = "ui-submit";
if ( classes ) {
classes += " ui-submit";
} else {
classes = "ui-submit";
}
}
$( "label[for='" + $el.attr( "id" ) + "']" ).addClass( "ui-submit" );

Expand Down

0 comments on commit ad59ed8

Please sign in to comment.