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

Commit

Permalink
Merge a6e4bb5 into 5190a95
Browse files Browse the repository at this point in the history
  • Loading branch information
hyunsook committed Feb 7, 2014
2 parents 5190a95 + a6e4bb5 commit fd1c775
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions js/widgets/forms/checkboxradio.js
Original file line number Diff line number Diff line change
Expand Up @@ -184,10 +184,16 @@ $.widget( "mobile.checkboxradio", $.extend( {

//returns either a set of radios with the same name attribute, or a single checkbox
_getInputSet: function() {
var name = this.element[ 0 ].name;

if ( this.inputtype === "checkbox" ) {
return this.element;
}

if ( !name ) {
return this.element;
}

return this.element.closest( "form, :jqmData(role='page'), :jqmData(role='dialog')" )
.find( "input[name='" + this.element[ 0 ].name + "'][type='" + this.inputtype + "']" );
},
Expand Down

0 comments on commit fd1c775

Please sign in to comment.