Button: bug fix when button has not a text
[platform/framework/web/web-ui-fw.git] / libs / patch / 0022-JQM-set-the-highlight-as-default.patch
1 From 0f66eb51ac4bad220e5b74fd2c4c3b2126d97f4e Mon Sep 17 00:00:00 2001
2 From: Minkyu Kang <mk7.kang@samsung.com>
3 Date: Wed, 2 Jan 2013 11:54:18 +0900
4 Subject: [PATCH] JQM: set the highlight as default
5
6 According to the TIZEN UX, set the highlight as default.
7 If don't want to fill highlight then user should be set data-highlight="fasle" explicitly.
8
9 Change-Id: I573ec253d3212cc8c56c180083f4f9ce903a369b
10 Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
11 ---
12  .../jquery-mobile-1.2.0/js/widgets/forms/slider.js |    2 +-
13  1 file changed, 1 insertion(+), 1 deletion(-)
14
15 diff --git a/libs/js/jquery-mobile-1.2.0/js/widgets/forms/slider.js b/libs/js/jquery-mobile-1.2.0/js/widgets/forms/slider.js
16 index e7f5df0..1c683df 100644
17 --- a/libs/js/jquery-mobile-1.2.0/js/widgets/forms/slider.js
18 +++ b/libs/js/jquery-mobile-1.2.0/js/widgets/forms/slider.js
19 @@ -65,7 +65,7 @@ $.widget( "mobile.slider", $.mobile.widget, {
20                         domSlider = document.createElement( 'div' ),
21                         slider = $( domSlider ),
22  
23 -                       valuebg = control.jqmData( "highlight" ) && cType !== "select" ? (function() {
24 +                       valuebg = control.jqmData( "highlight" ) !== false && cType !== "select" ? (function() {
25                                 var bg = document.createElement('div');
26                                 bg.className = 'ui-slider-bg ' + $.mobile.activeBtnClass + ' ui-btn-corner-all';
27                                 return $( bg ).prependTo( slider );
28 -- 
29 1.7.9.5
30