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

[bazaar] Extract inline script block and event handler in WEB-INF/classes/hudson/plugins/bazaar/BazaarTagAction/tagForm.jelly

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: Minor Minor
    • bazaar-plugin

      Problems

      == Inline Script Block
      Line: 67
      ----
      <script>
      	            <!-- update the visual feedback depending on the checkbox state -->
      	            function updateRow(e,i) {
      	              e.parentNode.parentNode.style.color = e.checked ? "inherit" : "grey";
      	              $("name"+i).disabled = !e.checked;
      	            }
      	          </script>
      ----
      
      == Inline Event Handler
      Line: 45
      ----
      <input type="checkbox" name="tag${loop.index}"
      	                         id="tag${loop.index}" onchange="updateRow(this,${loop.index})" />
      ----
      

      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: