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

Feature Request: Allow radios in horizontal controlgroup to have icons. #2434

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion js/jquery.mobile.forms.checkboxradio.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ $.widget( "mobile.checkboxradio", $.mobile.widget, {
inputtype = input.attr( "type" ),
checkedState = inputtype + "-on",
uncheckedState = inputtype + "-off",
icon = input.parents( ":jqmData(type='horizontal')" ).length ? undefined : uncheckedState,
icon = input.parents( ":jqmData(type='horizontal')" ).length ? (input.parents( ":jqmData(iconpos)" ).length ? uncheckedState : undefined) : uncheckedState,
activeBtn = icon ? "" : " " + $.mobile.activeBtnClass,
checkedClass = "ui-" + checkedState + activeBtn,
uncheckedClass = "ui-" + uncheckedState,
Expand Down