[chatwork] Extract inline script block and event handler in com/vexus2/jenkins/chatwork/jenkinschatworkplugin/ChatworkPublisher/global.jelly

XMLWordPrintable

    • Type: Task
    • Resolution: Unresolved
    • Priority: Minor
    • Component/s: chatwork-plugin

      Problems

      == Inline Script Block
      Line: 47
      ----
      <script>
            var ChatworkPublisher = {
              clearCache: function(){
                new Ajax.Request("${rootURL}/descriptor/com.vexus2.jenkins.chatwork.jenkinschatworkplugin.ChatworkPublisher/clearCache", {
                  onSuccess: function(rsp) {
                    alert("Clear cache done");
                  }
                });
              }
            };
          </script>
      ----
      
      == Inline Event Handler
      Line: 45
      ----
      <input type="button" value="clear" onclick="ChatworkPublisher.clearCache();"/>
      ----
      

      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: