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

[japex] Extract inline script block and event handler in WEB-INF/classes/hudson/plugins/japex/TrendReport/index.jelly

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

      Problems

      == Inline Script Block
      Line: 27
      ----
      <script>
                function jump(menu){
                  window.location.hash = menu.value;
                }
              </script>
      ----
      
      == Inline Event Handler
      Line: 32
      ----
      <select name="choice" onChange="jump(this)">
      ----
      

      Solutions

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

          [JENKINS-74591] [japex] Extract inline script block and event handler in WEB-INF/classes/hudson/plugins/japex/TrendReport/index.jelly

          Basil Crow created issue -
          Basil Crow made changes -
          Description Original: h4. Problems

          {noformat}
          == Inline Event Handler
          Line: 32
          ----
          <select name="choice" onChange="jump(this)">
          ----

          == Inline Script Block
          Line: 27
          ----
          <script>
                    function jump(menu){
                      window.location.hash = menu.value;
                    }
                  </script>
          ----

          == Inline Event Handler
          Line: 32
          ----
          <select name="choice" onChange="jump(this)">
          ----

          == Inline Script Block
          Line: 27
          ----
          <script>
                    function jump(menu){
                      window.location.hash = menu.value;
                    }
                  </script>
          ----
          {noformat}

          h4. Solutions

          [https://www.jenkins.io/doc/developer/security/csp/#inline-javascript-blocks]
          [https://www.jenkins.io/doc/developer/security/csp/#inline-event-handlers]
          New: h4. Problems

          {noformat}
          == Inline Script Block
          Line: 27
          ----
          <script>
                    function jump(menu){
                      window.location.hash = menu.value;
                    }
                  </script>
          ----

          == Inline Event Handler
          Line: 32
          ----
          <select name="choice" onChange="jump(this)">
          ----
          {noformat}

          h4. Solutions

          [https://www.jenkins.io/doc/developer/security/csp/#inline-javascript-blocks]
          [https://www.jenkins.io/doc/developer/security/csp/#inline-event-handlers]
          Summary Original: [japex] Extract inline script blocks and event handlers in WEB-INF/classes/hudson/plugins/japex/TrendReport/index.jelly New: [japex] Extract inline script block and event handler in WEB-INF/classes/hudson/plugins/japex/TrendReport/index.jelly

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

              Created:
              Updated: