Skip to content
This repository
Browse code

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 82d0eafc3f519cff80d0805092226ac93235b029 1 parent c8fffb7
Jasper de Groot authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  js/jquery.mobile.listview.js
2  js/jquery.mobile.listview.js
@@ -246,7 +246,7 @@ $.widget( "mobile.listview", $.mobile.widget, {
246 246
 			}
247 247
 
248 248
 			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" );
250 250
 
251 251
 				countParent.addClass( "ui-li-jsnumbering" )
252 252
 					.prepend( "<span class='ui-li-dec'>" + ( counter++ ) + ". </span>" );

0 notes on commit 82d0eaf

Please sign in to comment.
Something went wrong with that request. Please try again.