ToggleSwitch : bug fix
authorJinhyuk Jun <jinhyuk.jun@samsung.com>
Mon, 29 Apr 2013 06:49:52 +0000 (15:49 +0900)
committerhjnim.kim <hjnim.kim@samsung.com>
Fri, 3 May 2013 06:29:07 +0000 (15:29 +0900)
support user customized value(previously supported on/off only)

Change-Id: Id6933471e716524f04528062eff82f29ec9da9b4

libs/patch/0021-JQM-add-tizen-toggle-switch.patch

index eb597c5..3a3bb4c 100644 (file)
@@ -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 {