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

[gitlab-branch-source] Extract inline script block in io/jenkins/plugins/gitlabbranchsource/GitLabSCMSource/config-detail.jelly

XMLWordPrintable

    • 713.v9a_03496d45b_c

      Problem

      == Inline Script Block
      Line: 22
      ----
      <script>
          // var projectOwner = document.getElementsByClassName('project-owner');
          //
          // var projectPath = document.getElementsByClassName('project-path');
          //
          // projectPath.addEventListener('change', function() {
          //     var currentPath = projectPath.value;
          //     for(var i = currentPath.length-1; i >= 0; i--) {
          //         currentPath = currentPath.substring(0, currentPath.length-1);
          //         if(currentPath[i] === '/') {
          //             break;
          //         }
          //     }
          //     projectOwner.item(0).value = currentPath;
          // })
        </script>
      ----
      

      Solution

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

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

              Created:
              Updated:
              Resolved: