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

XMLWordPrintable

    • Type: Task
    • Resolution: Unresolved
    • Priority: Minor
    • Component/s: 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

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

              Created:
              Updated: