listview: Add ui-li-has-right-btn class with toggleswitch
authorYoumin Ha <youmin.ha@samsung.com>
Tue, 12 Feb 2013 02:36:34 +0000 (11:36 +0900)
committerMinkyu Kang <mk7.kang@samsung.com>
Tue, 19 Feb 2013 07:58:44 +0000 (16:58 +0900)
This patch adds ui-li-has-right-btn class, which sets right padding for
the main text, to the listitem even having toggleswitch on its right
side.
Fixes N_SE-24840.

Change-Id: I7907c305807aa89228ae1eaa425f8d64230b9d8f

libs/patch/0015-JQM-add-listview-style-option.patch

index a94bf2d..1060633 100644 (file)
@@ -33,7 +33,7 @@ index f24699b..d56a7ba 100644
 +      {
 +              var i, btnAttr, len = containers.length;
 +              for ( i = 0; i < len; i++ ) {
-+                      btnAttr = $( containers[ i ] ).find( ":jqmData(role='button')" ) || ( $( containers[ i ] ).find( "input" ).attr( "type" ) == "button" );
++                      btnAttr = $( containers[ i ] ).find( ":jqmData(role='button'),input[type='button'],select:jqmData(role='slider')" );
 +                      if ( btnAttr.length ) {
 +                              if ( btnAttr.jqmData( "style" ) == "circle" )  {
 +                                      $( containers[ i ] ).addClass( "ui-li-has-right-circle-btn" );