From c62f48baa3e2176ac4a0a55e0f7eeb022c59a090 Mon Sep 17 00:00:00 2001 From: Gabriel Schulhof Date: Mon, 5 Nov 2012 23:38:26 +0200 Subject: [PATCH] [checkboxradio] Turn off icon if part of a horizontal controlgroup --- js/widgets/forms/checkboxradio.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/widgets/forms/checkboxradio.js b/js/widgets/forms/checkboxradio.js index 433278c4013..3c5526c2bf8 100644 --- a/js/widgets/forms/checkboxradio.js +++ b/js/widgets/forms/checkboxradio.js @@ -37,8 +37,8 @@ $.widget( "mobile.checkboxradio", $.mobile.widget, { activeBtn = icon ? "" : " " + $.mobile.activeBtnClass, checkedClass = "ui-" + checkedState + activeBtn, uncheckedClass = "ui-" + uncheckedState, - checkedicon = checkedState, - uncheckedicon = uncheckedState; + checkedicon = icon ? checkedState : undefined, + uncheckedicon = icon ? uncheckedState : undefined; if ( inputtype !== "checkbox" && inputtype !== "radio" ) { return;