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

[lucene-search] Extract inline script block and event handlers in org/jenkinsci/plugins/lucene/search/management/LuceneManager/index.jelly

XMLWordPrintable

      Problems

      == Inline Script Block
      Line: 9
      ----
      <script>
                  	var luceneSearchManager = <st:bind value="${it}"/>
                  	document.addEventListener('DOMContentLoaded', function() {
      	                getStatus();
      	                window.setInterval(function (a, b) {getStatus();}, 2000);
                  	});
                  </script>
      ----
      
      == Inline Event Handler
      Line: 23
      ----
      <button id="btnRebuild" style="display:none" onclick="rebuildDatabase()">
      ----
      
      == Inline Event Handler
      Line: 24
      ----
      <button id="btnClean" style="display:none" onclick="clean()">
      ----
      
      == Inline Event Handler
      Line: 45
      ----
      <button id="btnAbort" style="display:none" onclick="abort()">
      ----
      

      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: