diff --git a/web/WEB-INF/views/test-caget.jsp b/web/WEB-INF/views/test-caget.jsp index d3c9502..7f4a305 100644 --- a/web/WEB-INF/views/test-caget.jsp +++ b/web/WEB-INF/views/test-caget.jsp @@ -42,8 +42,6 @@ - -
diff --git a/web/resources/js/test-caget.js b/web/resources/js/test-caget.js index b572f6c..864c4cf 100644 --- a/web/resources/js/test-caget.js +++ b/web/resources/js/test-caget.js @@ -7,13 +7,17 @@ jlab.epics2web.doGet = function () { /*Replace all commas with space, split on any whitespace, filter out empty strings*/ let tokens = input.replace(new RegExp(',', 'g'), " ").split(/\s/).filter(Boolean); - let form = $("#caget-form"); + let form = $(''); for (let i = 0; i < tokens.length; i++) { form.append(''); } + + if($("#n").prop('checked')) { + form.append(''); + } - form.submit(); + form.appendTo('body').submit(); } };