501ed5a3ca4cbec453f78a8343ebd62a09970d50
[platform/framework/web/web-ui-fw.git] / libs / patch / jqm-1.1.0 / 0014-JQM-Add-default-theme-on-buttonMarkup.patch
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
5
6 Signed-off-by: Youmin Ha <youmin.ha@samsung.com>
7 ---
8  .../js/jquery.mobile.buttonMarkup.js               |    3 ++-
9  1 file changed, 2 insertions(+), 1 deletion(-)
10
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 ) {
25  };
26  
27  $.fn.buttonMarkup.defaults = {
28 +       theme: "c",
29         corners: true,
30         shadow: true,
31         iconshadow: true,
32 -- 
33 1.7.9.5
34