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

[plugin-usage-plugin] Extract inline script block and event handler in org/jenkinsci/plugins/pluginusage/PluginUsageView/index.jelly

XMLWordPrintable

    • 4.8

      Problems

      == Inline Script Block
      Line: 112
      ----
      <script>
              function showHide(element, btn)
              {
                  if (element.style.display == 'none')
                  {
                      element.style.display = '';
                      btn.value='collapse';
                  }
                  else
                  {
                      element.style.display = 'none';
                      btn.value='expand';
                  }
              }
          </script>
      ----
      
      == Inline Event Handler
      Line: 59
      ----
      <input type="button" name="exco" id="exco${count}" value="expand" onclick="showHide(ulID${count},exco${count})" style="display: block;margin: auto;"/>
      ----
      

      Solutions

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

            froque Filipe Roque
            basil Basil Crow
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: