Skip to content
This repository
Browse code

Removes .ui-btn class from list dividers.

  • Loading branch information...
commit 3dc12131e6dd95c9e99d978fa138dab8154d7a9b 1 parent bbbaa84
Mat Marquis authored March 30, 2012

Showing 1 changed file with 2 additions and 6 deletions. Show diff stats Hide diff stats

  1. 8  js/jquery.mobile.listview.js
8  js/jquery.mobile.listview.js
@@ -234,7 +234,7 @@ $.widget( "mobile.listview", $.mobile.widget, {
234 234
 					}
235 235
 				} else if ( item.jqmData( "role" ) === "list-divider" ) {
236 236
 
237  
-					itemClass += " ui-li-divider ui-btn ui-bar-" + dividertheme;
  237
+					itemClass += " ui-li-divider ui-bar-" + dividertheme;
238 238
 					item.attr( "role", "heading" );
239 239
 
240 240
 					//reset counter when a divider heading is encountered
@@ -286,11 +286,7 @@ $.widget( "mobile.listview", $.mobile.widget, {
286 286
 					var $this = $(this);
287 287
 					$this.prependTo( $this.parent() ); //shift aside to front for css float
288 288
 				})
289  
-			.end()
290  
-
291  
-			.find( ".ui-li-count" ).each( function() {
292  
-					$( this ).closest( "li" ).addClass( "ui-li-has-count" );
293  
-				}).addClass( "ui-btn-up-" + ( $list.jqmData( "counttheme" ) || this.options.countTheme) + " ui-btn-corner-all" );
  289
+			.end();
294 290
 
295 291
 		// The idea here is to look at the first image in the list item
296 292
 		// itself, and any .ui-link-inherit element it may contain, so we

0 notes on commit 3dc1213

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