[attention] Extract inline script block and event handlers in org/jenkinsci/plugins/attention/VolunteerAction/summary.jelly

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      Problems

      == Inline Script Block
      Line: 6
      ----
      <script type="text/javascript">
      	    	var volProxy = <st:bind value="${it}"/>
      	    	var rootURL = "${rootURL}";
      	    	var currentUser = "${it.getCurrentUserID()}";
      	    	var pluginURL = "${it.getPluginURL()}";
      
      	        document.addEventListener('DOMContentLoaded', function() {
      	        	renderPage(${it.isFixSubmitted()}, "${it.getFixSubmittedByName()}", ${it.isIntermittentProblem()}, "${it.getIntermittentByName()}");
      	        }, false);
      	    </script>
      ----
      
      == Inline Event Handler
      Line: 27
      ----
      <button id="btnInvestigating" onClick="volunteerMeAsInvestigating()">
      ----
      
      == Inline Event Handler
      Line: 28
      ----
      <input type="checkbox" id="chkIntermittent" value="false" onchange="updateIntermittentProblem()"/>
      ----
      
      == Inline Event Handler
      Line: 29
      ----
      <input type="checkbox" id="chkFixSubmitted" value="false" onchange="updatefixIsSubmitted()"/>
      ----
      
      == Inline Event Handler
      Line: 32
      ----
      <select id="selTarget" onchange="targetChange()">
      ----
      
      == Inline Event Handler
      Line: 33
      ----
      <select id="selID" onchange="loadComments()">
      ----
      
      == Inline Event Handler
      Line: 36
      ----
      <select id="selIssue" onchange="displayIssueDescription()">
      ----
      
      == Inline Event Handler
      Line: 40
      ----
      <button id="btnVolunteer" onClick="updateVolunteer()">
      ----
      

      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
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Archived: