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

Commit

Permalink
Fix list-dividers use data-theme attribute first
Browse files Browse the repository at this point in the history
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
dotnetwise committed Oct 30, 2012
1 parent 7273a5e commit e12232b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/widgets/listview.js
Expand Up @@ -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 ) {
Expand Down

0 comments on commit e12232b

Please sign in to comment.