Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[FIXED JENKINS-36158] use .prop instead of .attr, and treat it as bool
  • Loading branch information
kinow committed Jul 6, 2017
1 parent 8ed1202 commit a5f0512
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -866,7 +866,7 @@ var UnoChoice = UnoChoice || (function($) {
if (e.prop('tagName') == 'SELECT') {
value = getSelectValues(e);
} else if (e.attr('type') == 'checkbox' || e.attr('type') == 'radio') {
value = (e.attr('checked') !== undefined) ? e.val(): '';
value = e.prop('checked') ? e.val(): '';
} else {
value = e.val();
}
Expand Down

0 comments on commit a5f0512

Please sign in to comment.