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

Commit e12232b

Browse files
committed
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>
1 parent 7273a5e commit e12232b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/widgets/listview.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ $.widget( "mobile.listview", $.mobile.widget, {
255255
}
256256
} else if ( isDivider ) {
257257

258-
itemClass += " ui-li-divider ui-bar-" + dividertheme;
258+
itemClass += " ui-li-divider ui-bar-" + (item.jqmData("theme") || dividertheme);
259259
item.attr( "role", "heading" );
260260

261261
if ( ol ) {

0 commit comments

Comments
 (0)