[embotics-vcommander] Extract inline script block and event handler in com/embotics/vlm/plugin/actions/VCommanderRunWorkflowAction/config.jelly

XMLWordPrintable

      Problems

      == Inline Script Block
      Line: 30
      ----
      <script>
      		function updateWaitControls_${buildStepId}() {
      			var sync = document.getElementById("sync-${buildStepId}").checked;
      			document.getElementById("timeout-${buildStepId}").parentElement.parentElement.style.display=sync ? null : "none"
      			document.getElementById("polling-${buildStepId}").parentElement.parentElement.style.display=sync ? null : "none"
      		}
      		setTimeout(updateWaitControls_${buildStepId}, 100);
      	</script>
      ----
      
      == Inline Event Handler
      Line: 19
      ----
      <f:checkbox default="true" id="sync-${buildStepId}" onclick="updateWaitControls_${buildStepId}()" />
      ----
      

      Solutions

      https://www.jenkins.io/doc/developer/security/csp/#inline-javascript-blocks
      https://www.jenkins.io/doc/developer/security/csp/#inline-event-handlers

            Assignee:
            Unassigned
            Reporter:
            Basil Crow
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: