Skip to content

Commit

Permalink
Merge pull request #5 from roverdotcom/DEV-18640
Browse files Browse the repository at this point in the history
[DEV-18640] add support for radio buttons in ConditionSets
  • Loading branch information
bmatcuk authored Apr 18, 2018
2 parents e008faa + b2ce985 commit 319f2cc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gargoyle/media/js/gargoyle.js
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,8 @@ $(document).ready(function () {

if ($(this).attr('type') == 'checkbox') {
val = $(this).is(':checked') ? '1' : '0';
} else if ($(this).attr('type') == 'radio' && !$(this).is(':checked')) {
return;
} else {
val = $(this).val();
}
Expand Down

0 comments on commit 319f2cc

Please sign in to comment.