From 35e97cc5dfc322c7fbea22aa2812fafddbdffb99 Mon Sep 17 00:00:00 2001 From: scottjehl Date: Mon, 11 Oct 2010 16:41:30 -0400 Subject: [PATCH] enabled theming of select menu buttons through data-theme attr on select el. Fixes #149 --- _form-controls.html | 2 +- js/jquery.mobile.forms.select.js | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/_form-controls.html b/_form-controls.html index c8461090..fb9c268c 100644 --- a/_form-controls.html +++ b/_form-controls.html @@ -159,7 +159,7 @@
- diff --git a/js/jquery.mobile.forms.select.js b/js/jquery.mobile.forms.select.js index 84b442a3..e8ad1b8e 100644 --- a/js/jquery.mobile.forms.select.js +++ b/js/jquery.mobile.forms.select.js @@ -17,7 +17,8 @@ $.fn.customSelect = function(options){ //extendable options o = $.extend({ closeText: "close", - chooseText: label.text() + chooseText: label.text(), + theme: select.data("theme") }, options), buttonId = selectID + "-button", @@ -37,7 +38,8 @@ $.fn.customSelect = function(options){ .insertBefore( select ) .buttonMarkup({ iconpos: 'right', - icon: 'arrow-d' + icon: 'arrow-d', + theme: o.theme }), menuPage = $( "
" + "
" +