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

[build-monitor-plugin] Extract inline script block in com/smartcodeltd/jenkinsci/plugins/buildmonitor/BuildMonitorView/configure-entries.jelly

XMLWordPrintable

    • 1.14-943.vf82794123d4e

      Problem

      == Inline Script Block
      Line: 132
      ----
      <script>
          (function() {
            Behaviour.specify("#recurse", 'ListView', 0, function(e) {
              var nestedElements = document.querySelectorAll('SPAN.nested')
              e.onclick = function() {
                nestedElements.forEach(function(el) {
                  el.style.display = e.checked ? '' : 'none';
                });
              }
            });
          }());
        </script>
      ----
      

      Solution

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

            yafenkin Yaroslav Afenkin
            basil Basil Crow
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: