Permalink
Browse files

Fixes #3998 - Make button elements default to mini in header and footer

  • Loading branch information...
1 parent fc8738a commit a618f806bf688064671223a52fd2c1ce04e0a824 @jaspermdegroot jaspermdegroot committed May 4, 2012
Showing with 5 additions and 5 deletions.
  1. +5 −5 js/jquery.mobile.forms.button.js
@@ -13,19 +13,19 @@ $.widget( "mobile.button", $.mobile.widget, {
theme: null,
icon: null,
iconpos: null,
- inline: false,
corners: true,
shadow: true,
iconshadow: true,
- initSelector: "button, [type='button'], [type='submit'], [type='reset'], [type='image']",
- mini: false
+ initSelector: "button, [type='button'], [type='submit'], [type='reset'], [type='image']"
},
_create: function() {
var $el = this.element,
$button,
o = this.options,
type,
name,
+ inline = $el.jqmData( "inline" ),
+ mini = $el.jqmData( "mini" ),
classes = "",
$buttonPlaceholder;
@@ -61,11 +61,11 @@ $.widget( "mobile.button", $.mobile.widget, {
theme: o.theme,
icon: o.icon,
iconpos: o.iconpos,
- inline: o.inline,
+ inline: inline,
corners: o.corners,
shadow: o.shadow,
iconshadow: o.iconshadow,
- mini: o.mini
+ mini: mini
})
.addClass( classes )
.append( $el.addClass( "ui-btn-hidden" ) );

0 comments on commit a618f80

Please sign in to comment.