Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix list-dividers use data-theme attribute first

Allow the list-divider to customize its own theme if desired
<ul data-role="listview" data-divider-theme="e">
<li data-role="list-divider">Theme e</li>
<li>some value</li>
<li data-role="list-divider" data-theme="b">Theme b</li>
<li>some other value</li>
</ul>
  • Loading branch information...
commit e12232b738d1471c4af3e9e017d7d43481c6b00d 1 parent 7273a5e
@dotnetwise dotnetwise authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  js/widgets/listview.js
View
2  js/widgets/listview.js
@@ -255,7 +255,7 @@ $.widget( "mobile.listview", $.mobile.widget, {
}
} else if ( isDivider ) {
- itemClass += " ui-li-divider ui-bar-" + dividertheme;
+ itemClass += " ui-li-divider ui-bar-" + (item.jqmData("theme") || dividertheme);
item.attr( "role", "heading" );
if ( ol ) {
Please sign in to comment.
Something went wrong with that request. Please try again.