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

[categorized-view] Extract inline script block and event handler in lib/categorizedview/catProjectViewRow.jelly

XMLWordPrintable

      Problems

      == Inline Script Block
      Line: 50
      ----
      <script type="text/javascript">
              document.addEventListener("DOMContentLoaded", function() {
                restoreJobGroupCollapseState("${view.getViewName()}", "${view.getGroupClassFor(job)}")
              });
            </script>
      ----
      
      == Inline Event Handler
      Line: 43
      ----
      <tr id="category_${job.name}" class="${job.disabled?'disabledJob':null} job-status-${job.iconColor.iconName} categoryJobRow" category="${job.name}"
            categoryRole="category"
            onClick="toggleJobGroupVisibility('${view.getViewName()}','${view.getGroupClassFor(job)}')">
      ----
      

      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: