mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-04-16 04:11:01 +00:00
ensure that the active button state is still applied to check and radio sets that don't have icons
This commit is contained in:
parent
ffdab6ff32
commit
9f07a1cfb2
1 changed files with 4 additions and 2 deletions
|
|
@ -18,7 +18,9 @@ $.widget( "mobile.checkboxradio", $.mobile.widget, {
|
|||
inputtype = input.attr( "type" ),
|
||||
checkedState = inputtype + "-on",
|
||||
uncheckedState = inputtype + "-off",
|
||||
checkedClass = "ui-"+ checkedState,
|
||||
icon = input.parents( ":jqmData(type='horizontal')" ).length ? undefined : uncheckedState,
|
||||
activeBtn = icon ? "" : " " + $.mobile.activeBtnClass,
|
||||
checkedClass = "ui-"+ checkedState + activeBtn,
|
||||
uncheckedClass = "ui-"+ uncheckedState,
|
||||
checkedicon = "ui-icon-" + checkedState,
|
||||
uncheckedicon = "ui-icon-" + uncheckedState;
|
||||
|
|
@ -43,7 +45,7 @@ $.widget( "mobile.checkboxradio", $.mobile.widget, {
|
|||
label
|
||||
.buttonMarkup({
|
||||
theme: this.options.theme,
|
||||
icon: this.element.parents( ":jqmData(type='horizontal')" ).length ? undefined : uncheckedState,
|
||||
icon: icon,
|
||||
shadow: false
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue