mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-03-16 22:10:25 +00:00
fix issue 1851 as suggested
This commit is contained in:
parent
a9fae15c88
commit
ff2ef4076b
1 changed files with 4 additions and 1 deletions
|
|
@ -110,7 +110,10 @@ $.widget( "mobile.checkboxradio", $.mobile.widget, {
|
|||
|
||||
//returns either a set of radios with the same name attribute, or a single checkbox
|
||||
_getInputSet: function(){
|
||||
return this.element.closest( "form,fieldset,:jqmData(role='page')" )
|
||||
if(this.inputtype == "checkbox") {
|
||||
return this.element;
|
||||
}
|
||||
return this.element.closest( "form,fieldset,:jqmData(role='page')" )
|
||||
.find( "input[name='"+ this.element.attr( "name" ) +"'][type='"+ this.inputtype +"']" );
|
||||
},
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue