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

XMLWordPrintable

    • Type: Task
    • Resolution: Unresolved
    • Priority: Minor
    • Component/s: 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

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

              Created:
              Updated: