Skip to content
Permalink
Browse files

[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 a5f051216707b73f214748bf1717ec9e98acea55
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/main/resources/org/biouno/unochoice/stapler/unochoice/unochoice.js
@@ -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();
}

0 comments on commit a5f0512

Please sign in to comment.
You can’t perform that action at this time.