Skip to content

Commit

Permalink
Merge pull request #87 from mbentz-uf/fix_control_field_limit
Browse files Browse the repository at this point in the history
Fix bug that removes arm-event after 10th control field, credit to nathan.orr
  • Loading branch information
ChemiKyle authored May 24, 2021
2 parents c60002a + 4702213 commit 2f11967
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ $(document).ready(function() {
var branchingLogicRadios = function($radio) {
$radio.prop('checked', true);

var suffix = '____' + $radio.attr('name').slice(-1);
var suffix = $radio.attr('name').slice($radio.attr('name').search('____'),$radio.attr('name').length);
var selectorShow = '[name="control_event_id' + suffix + '"], [name="control_field_key' + suffix + '"]';
var selectorHide = '[name="control_piping' + suffix + '"]';

Expand Down

0 comments on commit 2f11967

Please sign in to comment.