Permalink
Browse files

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

…d footer
  • Loading branch information...
1 parent e0872f3 commit 7484654ecc547a1bc8d6160829cfc5404e76328b @jaspermdegroot jaspermdegroot committed May 17, 2012
Showing with 2 additions and 3 deletions.
  1. +2 −3 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 ) {

0 comments on commit 7484654

Please sign in to comment.