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

[mentor-questa-vrm] Extract inline script block in lib/com/mentor/questa/vrm/jenkins/coverage-nested-rows-ctrl.jelly

XMLWordPrintable

      Problem

      == Inline Script Block
      Line: 45
      ----
      <script>
             function showCoverageDetails(id) {
               var element = document.getElementById(id)
               element.style.display = "";
               document.getElementById(id + "-showlink").style.display = "none";
               document.getElementById(id + "-hidelink").style.display = "";
            }
      
            function hideCoverageDetails(id) {
              var element = document.getElementById(id)
             	element.style.display = "none";
              document.getElementById(id + "-showlink").style.display = "";
              document.getElementById(id + "-hidelink").style.display = "none";
            }
        </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: