Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

update allow to override default inline and mini styling in header an…

…d footer
  • Loading branch information...
commit 7484654ecc547a1bc8d6160829cfc5404e76328b 1 parent e0872f3
@jaspermdegroot jaspermdegroot authored
Showing with 2 additions and 3 deletions.
  1. +2 −3 js/jquery.mobile.buttonMarkup.js
View
5 js/jquery.mobile.buttonMarkup.js
@@ -70,18 +70,17 @@ $.fn.buttonMarkup = function( options ) {
}
buttonClass = "ui-btn ui-btn-up-" + o.theme;
- buttonClass += o.inline ? " ui-btn-inline" : "";
buttonClass += o.shadow ? " ui-shadow" : "";
buttonClass += o.corners ? " ui-btn-corner-all" : "";
if ( o.mini !== undefined ) {
// Used to control styling in headers/footers, where buttons default to `mini` style.
- buttonClass += o.mini ? " ui-mini" : " ui-fullsize";
+ buttonClass += o.mini === true ? " ui-mini" : " ui-fullsize";
}
if ( o.inline !== undefined ) {
// Used to control styling in headers/footers, where buttons default to `inline` style.
- buttonClass += o.inline ? " ui-btn-inline" : " ui-btn-block";
+ buttonClass += o.inline === true ? " ui-btn-inline" : " ui-btn-block";
}
if ( o.icon ) {
Please sign in to comment.
Something went wrong with that request. Please try again.