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

[lucene-search] Extract inline script blocks and event handlers in org/jenkinsci/plugins/lucene/search/FreeTextSearch/search-results.jelly

XMLWordPrintable

      Problems

      == Inline Script Block
      Line: 91
      ----
      <script>
                      var search =
                      <st:bind value="${it}"/>
                  </script>
      ----
      
      == Inline Script Block
      Line: 111
      ----
      <script>
                      loadNext();
                  </script>
      ----
      
      == Inline Event Handler
      Line: 97
      ----
      <button class="bnt" style="left: 60px; background-color: Azure" onclick="toMiddle()">
      ----
      
      == Inline Event Handler
      Line: 98
      ----
      <button class="bnt" style="left: 100px; background-color: Beige" onclick="toBottom()">
      ----
      
      == Inline Event Handler
      Line: 114
      ----
      <button id="btnPrev" style="margin-left: 0%" onclick="loadPrev()">
      ----
      
      == Inline Event Handler
      Line: 115
      ----
      <button id="btnNext" style="margin-left: 80%" onclick="loadNext()">
      ----
      

      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: