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

[mentor-questa-vrm] Extract inline script block in com/mentor/questa/vrm/jenkins/QuestaVrmPortlet/table.jelly

XMLWordPrintable

      Problem

      == Inline Script Block
      Line: 74
      ----
      <script>
      	document.addEventListener("DOMContentLoaded",function(){
      		onload();
      		var img = document.createElement("img");
      		img.src="${resURL}/plugin/mentor-questa-vrm/icons/mentorlogo.png"
      		img.height="14"
      		img.title="Mentor Graphics"
      		img.alt="[mentor logo]" 
      		document.getElementById("title-${it.id}").insertBefore( img, document.getElementById("title-${it.id}").childNodes[0]);
      	});
        </script>
      ----
      

      Solution

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

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

              Created:
              Updated: