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

[talend] Extract inline script block and event handler in io/jenkins/plugins/talend/RunPromotionBuilder/config.jelly

XMLWordPrintable

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

      Problems

      == Inline Script Block
      Line: 36
      ----
      <script>
      		/* Initialize dropdowns
      		wait a little bit for the DOM to load
      		*/
      		setTimeout(function(){
      			changeArtifactType(${promotionId}, document.getElementById('artifacttype-' + ${promotionId}).querySelector('select').value)
      		}, 50)
      	</script>
      ----
      
      == Inline Event Handler
      Line: 11
      ----
      <f:select field="artifactType" default="" title="${%ArtifactType}" description="${%ArtifactTypeDescr}" onload="changeArtifactType(${promotionId}, value)" onchange="changeArtifactType(${promotionId}, value)" checkMethod="post" />
      ----
      

      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: