From 4702213d39994df40696c91e66fd8e63c6e69579 Mon Sep 17 00:00:00 2001 From: mbentz Date: Mon, 24 May 2021 08:50:11 -0400 Subject: [PATCH] Fix bug that removes arm-event after 10th control field --- js/config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/config.js b/js/config.js index 2050a15..2833660 100644 --- a/js/config.js +++ b/js/config.js @@ -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 + '"]';