Skip to content
This repository was archived by the owner on Oct 8, 2021. It is now read-only.

Commit 82d0eaf

Browse files
Listview: Fixes read-only list numbering on browsers that don't support CSS pseudo classes. Classes are not applied yet so we can't check with .is().
1 parent c8fffb7 commit 82d0eaf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/jquery.mobile.listview.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ $.widget( "mobile.listview", $.mobile.widget, {
246246
}
247247

248248
if ( counter && itemClass.indexOf( "ui-li-divider" ) < 0 ) {
249-
countParent = item.is( ".ui-li-static:first" ) ? item : item.find( ".ui-link-inherit" );
249+
countParent = itemClass.indexOf( "ui-li-static" ) > 0 ? item : item.find( ".ui-link-inherit" );
250250

251251
countParent.addClass( "ui-li-jsnumbering" )
252252
.prepend( "<span class='ui-li-dec'>" + ( counter++ ) + ". </span>" );

0 commit comments

Comments
 (0)