Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

  • Loading branch information...
commit a618f806bf688064671223a52fd2c1ce04e0a824 1 parent fc8738a
Jasper de Groot authored May 04, 2012

Showing 1 changed file with 5 additions and 5 deletions. Show diff stats Hide diff stats

  1. 10  js/jquery.mobile.forms.button.js
10  js/jquery.mobile.forms.button.js
@@ -13,12 +13,10 @@ $.widget( "mobile.button", $.mobile.widget, {
13 13
 		theme: null,
14 14
 		icon: null,
15 15
 		iconpos: null,
16  
-		inline: false,
17 16
 		corners: true,
18 17
 		shadow: true,
19 18
 		iconshadow: true,
20  
-		initSelector: "button, [type='button'], [type='submit'], [type='reset'], [type='image']",
21  
-		mini: false
  19
+		initSelector: "button, [type='button'], [type='submit'], [type='reset'], [type='image']"
22 20
 	},
23 21
 	_create: function() {
24 22
 		var $el = this.element,
@@ -26,6 +24,8 @@ $.widget( "mobile.button", $.mobile.widget, {
26 24
 			o = this.options,
27 25
 			type,
28 26
 			name,
  27
+			inline = $el.jqmData( "inline" ),
  28
+			mini = $el.jqmData( "mini" ),
29 29
 			classes = "",
30 30
 			$buttonPlaceholder;
31 31
 
@@ -61,11 +61,11 @@ $.widget( "mobile.button", $.mobile.widget, {
61 61
 				theme: o.theme,
62 62
 				icon: o.icon,
63 63
 				iconpos: o.iconpos,
64  
-				inline: o.inline,
  64
+				inline: inline,
65 65
 				corners: o.corners,
66 66
 				shadow: o.shadow,
67 67
 				iconshadow: o.iconshadow,
68  
-				mini: o.mini
  68
+				mini: mini
69 69
 			})
70 70
 			.addClass( classes )
71 71
 			.append( $el.addClass( "ui-btn-hidden" ) );

0 notes on commit a618f80

Please sign in to comment.
Something went wrong with that request. Please try again.