1 From b0b89011ffeb68fc9a207f67558048217912025c Mon Sep 17 00:00:00 2001
2 From: Youmin Ha <youmin.ha@samsung.com>
3 Date: Wed, 25 Jul 2012 10:15:08 +0900
4 Subject: [PATCH] JQM: Add default theme on buttonMarkup
6 Signed-off-by: Youmin Ha <youmin.ha@samsung.com>
8 .../js/jquery.mobile.buttonMarkup.js | 3 ++-
9 1 file changed, 2 insertions(+), 1 deletion(-)
11 diff --git a/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.buttonMarkup.js b/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.buttonMarkup.js
12 index d523ad9..9ca2366 100644
13 --- a/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.buttonMarkup.js
14 +++ b/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.buttonMarkup.js
15 @@ -38,7 +38,7 @@ $.fn.buttonMarkup = function( options ) {
16 o = $.extend( {}, $.fn.buttonMarkup.defaults, {
17 icon: options.icon !== undefined ? options.icon : el.jqmData( "icon" ),
18 iconpos: options.iconpos !== undefined ? options.iconpos : el.jqmData( "iconpos" ),
19 - theme: options.theme !== undefined ? options.theme : el.jqmData( "theme" ) || $.mobile.getInheritedTheme( el, "c" ),
20 + theme: options.theme !== undefined ? options.theme : el.jqmData( "theme" ) || $.mobile.getInheritedTheme( el, $.fn.buttonMarkup.defaults["theme"] ),
21 inline: options.inline !== undefined ? options.inline : el.jqmData( "inline" ),
22 shadow: options.shadow !== undefined ? options.shadow : el.jqmData( "shadow" ),
23 corners: options.corners !== undefined ? options.corners : el.jqmData( "corners" ),
24 @@ -235,6 +235,7 @@ $.fn.buttonMarkup = function( options ) {
27 $.fn.buttonMarkup.defaults = {