mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-05-05 13:14:45 +00:00
Merge branch 'patch-1' of https://github.com/remidewitte/jquery-mobile into left-iconpos
This commit is contained in:
commit
f2821ed8ed
1 changed files with 3 additions and 2 deletions
|
|
@ -156,7 +156,7 @@ $.widget( "mobile.listview", $.mobile.widget, {
|
|||
counter = $.support.cssPseudoElement || !$.nodeName( $list[ 0 ], "ol" ) ? 0 : 1,
|
||||
itemClassDict = {},
|
||||
item, itemClass, itemTheme,
|
||||
a, last, splittheme, countParent, icon, imgParents, img;
|
||||
a, last, splittheme, countParent, icon, imgParents, img, itemIconpos;
|
||||
|
||||
if ( counter ) {
|
||||
$list.find( ".ui-li-dec" ).remove();
|
||||
|
|
@ -173,6 +173,7 @@ $.widget( "mobile.listview", $.mobile.widget, {
|
|||
// If we're creating the element, we update it regardless
|
||||
if ( create || !item.hasClass( "ui-li" ) ) {
|
||||
itemTheme = item.jqmData("theme") || o.theme;
|
||||
itemIconpos = item.jqmData("iconpos") || "right";
|
||||
a = this._getChildrenByTagName( item[ 0 ], "a", "A" );
|
||||
|
||||
if ( a.length ) {
|
||||
|
|
@ -182,7 +183,7 @@ $.widget( "mobile.listview", $.mobile.widget, {
|
|||
wrapperEls: "div",
|
||||
shadow: false,
|
||||
corners: false,
|
||||
iconpos: "right",
|
||||
iconpos: itemIconpos,
|
||||
icon: a.length > 1 || icon === false ? false : icon || "arrow-r",
|
||||
theme: itemTheme
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue