Skip to content

Commit

Permalink
Fix bug that removes arm-event after 10th control field
Browse files Browse the repository at this point in the history
  • Loading branch information
mbentz committed May 24, 2021
1 parent c60002a commit 4702213
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 4702213

Please sign in to comment.