Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Listview: Fixes read-only list numbering on browsers that don't suppo…

…rt CSS pseudo classes. Classes are not applied yet so we can't check with .is().
  • Loading branch information...
commit 4657b76ea3dfee4b6c4c4ba89c2e741ba732369f 1 parent 19586e3
@jaspermdegroot jaspermdegroot authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  js/widgets/listview.js
View
2  js/widgets/listview.js
@@ -246,7 +246,7 @@ $.widget( "mobile.listview", $.mobile.widget, {
}
if ( counter && itemClass.indexOf( "ui-li-divider" ) < 0 ) {
- countParent = item.is( ".ui-li-static:first" ) ? item : item.find( ".ui-link-inherit" );
+ countParent = itemClass.indexOf( "ui-li-static" ) > 0 ? item : item.find( ".ui-link-inherit" );
countParent.addClass( "ui-li-jsnumbering" )
.prepend( "<span class='ui-li-dec'>" + ( counter++ ) + ". </span>" );
Please sign in to comment.
Something went wrong with that request. Please try again.