From fda262018801291b54d9e15b49853455ae70d72e Mon Sep 17 00:00:00 2001 From: Jinhyuk Jun Date: Mon, 29 Apr 2013 15:49:52 +0900 Subject: [PATCH] ToggleSwitch : bug fix support user customized value(previously supported on/off only) Change-Id: Id6933471e716524f04528062eff82f29ec9da9b4 --- libs/patch/0021-JQM-add-tizen-toggle-switch.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/patch/0021-JQM-add-tizen-toggle-switch.patch b/libs/patch/0021-JQM-add-tizen-toggle-switch.patch index eb597c5..3a3bb4c 100644 --- a/libs/patch/0021-JQM-add-tizen-toggle-switch.patch +++ b/libs/patch/0021-JQM-add-tizen-toggle-switch.patch @@ -60,7 +60,7 @@ index e7f5df0..2e682db 100644 - }); + if ( imgToggle ) { + appHandle = $( this.handle ).parents( ".ui-slider" ); -+ if ( $( this.handle ).attr("aria-valuenow") === "on" ) { ++ if ( $( this.handle ).attr("aria-valuenow") === "on" || $( this.handle ).attr("aria-valuenow") === $( this.element ).children( "option:last" ).attr( "value" ) ) { + appHandle.children( "span.ui-slider-label-a" ).show(); + appHandle.children( "span.ui-slider-label-b" ).hide(); + } else { -- 2.7.4