Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-74101

[build-environment] Extract inline script block and event handler in org/jenkinsci/plugins/buildenvironment/actions/BuildEnvironmentBuildAction/summary.jelly

XMLWordPrintable

      Problems

      == Inline Script Block
      Line: 7
      ----
      <script>
      		function kathiToggle(name) {
      			obj = document.getElementById(name + "");
      			if(obj.style.display=="none") {
      				obj.style.display = "";
      			} else {
      				obj.style.display = "none";
      			}
      		}
      	</script>
      ----
      
      == Inline Event Handler
      Line: 25
      ----
      <td  bgcolor="#ADDFFF" colspan="2" align="center" onclick="kathiToggle('${dataHolder.getId()}');">
      ----
      

      Solutions

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

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

              Created:
              Updated: