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

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

XMLWordPrintable

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

      Problems

      == Inline Script Block
      Line: 47
      ----
      <script>
      		/* Initialize checkbox 
      		wait a little bit for the DOM to load
      		*/
      		setTimeout(function(){
      		
      //            displayParameters(${creatorId}, document.getElementById("field-upgradableP-" + ${creatorId}).querySelector('input').checked)
      			changeAutoUpgradable(${creatorId}, document.getElementById("field-upgradableP-" + ${creatorId}).querySelector('input').checked)
      		}, 50)
      	</script>
      ----
      
      == Inline Event Handler
      Line: 11
      ----
      <f:select field="artifactType" default="" title="${%ArtifactType}" description="${%ArtifactTypeDescr}" onchange="displayParameters(${creatorId}, value)" />
      ----
      
      == Inline Event Handler
      Line: 18
      ----
      <f:checkbox field="autoUpgradable" default="true" onclick="changeAutoUpgradable(${creatorId}, checked)" />
      ----
      
      == Inline Event Handler
      Line: 36
      ----
      <f:select field="runtimeType" default="" title="${%RuntimeType}" description="${%RuntimeTypeDescr}" onchange="displayRuntime(${creatorId}, value)" />
      ----
      

      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: