From 2521dc2ffbbdf4a3832eb9a42cedb857ec776f46 Mon Sep 17 00:00:00 2001 From: scottjehl Date: Tue, 12 Oct 2010 16:29:16 -0400 Subject: [PATCH] implemented setting of theme and icon for split buttons at the list and link level. --- js/jquery.mobile.listview.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/js/jquery.mobile.listview.js b/js/jquery.mobile.listview.js index e4594ec1..2d4fd5b0 100644 --- a/js/jquery.mobile.listview.js +++ b/js/jquery.mobile.listview.js @@ -12,6 +12,7 @@ $.widget( "mobile.listview", $.mobile.widget, { countTheme: "c", headerTheme: "b", dividerTheme: "b", + splitIcon: "arrow-r" splitTheme: "b", inset: false }, @@ -145,9 +146,9 @@ $.widget( "mobile.listview", $.mobile.widget, { .append( $( "" ).buttonMarkup({ shadow: true, corners: true, - theme: o.splitTheme, + theme: $list.data('splittheme') || a.data('theme') || o.splitTheme, iconpos: "notext", - icon: a.data('icon') || "arrow-r" + icon: $list.data('spliticon') || a.data('icon') || o.spliticon } ) ); //fix corners