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

[report-info] Extract inline script block and event handler in org/jenkinsci/plugins/reportinfo/ReportInfo/main.jelly

XMLWordPrintable

      Problems

      == Inline Script Block
      Line: 40
      ----
      <script type="text/javascript">
                  function displayNotif(idx) {
                      var el = document.getElementById("n" + idx);
                      if(el.getAttribute("style")) {
                          el.removeAttribute("style");
                      } else {
                          el.setAttribute ("style", "display:none");
                      }
                  }
              </script>
      ----
      
      == Inline Event Handler
      Line: 52
      ----
      <a href="javascript:void(0)" onclick="displayNotif(${idx})">
      ----
      

      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: