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

[calendar-view] Extract inline script block in io/jenkins/plugins/view/calendar/CalendarView/configure-entries.jelly

XMLWordPrintable

      Problem

      == Inline Script Block
      Line: 315
      ----
      <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

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

              Created:
              Updated: