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

[mentor-questa-vrm] Extract inline script block in com/mentor/questa/ucdb/jenkins/QuestaCoverageAction/summary.jelly

      Problem

      == Inline Script Block
      Line: 139
      ----
      <script>
      
                  function showDetails(id) {
                  var element = document.getElementById(id)
                  element.style.display = "";
                  document.getElementById(id + "-showlink").style.display = "none";
                  document.getElementById(id + "-hidelink").style.display = "";
      
                  }
      
                  function hideDetails(id) {
                  document.getElementById(id).style.display = "none";
                  document.getElementById(id + "-showlink").style.display = "";
                  document.getElementById(id + "-hidelink").style.display = "none";
                  }
              </script>
      ----
      

      Solution

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

          [JENKINS-74495] [mentor-questa-vrm] Extract inline script block in com/mentor/questa/ucdb/jenkins/QuestaCoverageAction/summary.jelly

          Basil Crow created issue -
          Basil Crow made changes -
          Assignee Original: Questa Vrm [ questa_vrm ]
          Basil Crow made changes -
          Description Original: h4. Problems

          {noformat}
          == Inline Script Block
          Line: 139
          ----
          <script>

                      function showDetails(id) {
                      var element = document.getElementById(id)
                      element.style.display = "";
                      document.getElementById(id + "-showlink").style.display = "none";
                      document.getElementById(id + "-hidelink").style.display = "";

                      }

                      function hideDetails(id) {
                      document.getElementById(id).style.display = "none";
                      document.getElementById(id + "-showlink").style.display = "";
                      document.getElementById(id + "-hidelink").style.display = "none";
                      }
                  </script>
          ----

          == Inline Script Block
          Line: 139
          ----
          <script>

                      function showDetails(id) {
                      var element = document.getElementById(id)
                      element.style.display = "";
                      document.getElementById(id + "-showlink").style.display = "none";
                      document.getElementById(id + "-hidelink").style.display = "";

                      }

                      function hideDetails(id) {
                      document.getElementById(id).style.display = "none";
                      document.getElementById(id + "-showlink").style.display = "";
                      document.getElementById(id + "-hidelink").style.display = "none";
                      }
                  </script>
          ----
          {noformat}

          h4. Solution

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

          {noformat}
          == Inline Script Block
          Line: 139
          ----
          <script>

                      function showDetails(id) {
                      var element = document.getElementById(id)
                      element.style.display = "";
                      document.getElementById(id + "-showlink").style.display = "none";
                      document.getElementById(id + "-hidelink").style.display = "";

                      }

                      function hideDetails(id) {
                      document.getElementById(id).style.display = "none";
                      document.getElementById(id + "-showlink").style.display = "";
                      document.getElementById(id + "-hidelink").style.display = "none";
                      }
                  </script>
          ----
          {noformat}

          h4. Solution

          [https://www.jenkins.io/doc/developer/security/csp/#inline-javascript-blocks]
          Summary Original: [mentor-questa-vrm] Extract inline script blocks in com/mentor/questa/ucdb/jenkins/QuestaCoverageAction/summary.jelly New: [mentor-questa-vrm] Extract inline script block in com/mentor/questa/ucdb/jenkins/QuestaCoverageAction/summary.jelly

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

              Created:
              Updated: