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

[simpleupdatesite] Extract inline event handlers in WEB-INF/classes/hudson/plugins/simpleupdatesite/SimpleUpdateSiteWidget/index.jelly

XMLWordPrintable

      Problems

      == Inline Event Handler
      Line: 45
      ----
      <input type="button" value="Install" class="yui-button"
      									onclick="javascript:installSubmit(document.pluginInstallForm)" />
      ----
      
      == Inline Event Handler
      Line: 97
      ----
      <img style="cursor:hand"
      								src="${rootURL}/plugin/simpleupdatesite/img/refreshplugininfo.gif"
      								tooltip="Refresh plugin info"
      								onclick="javascript:refreshPluginInfo('${rootURL}/plugin/simpleupdatesite/refreshPluginInfo', this)" />
      ----
      
      == Inline Event Handler
      Line: 101
      ----
      <img style="cursor:hand"
      								src="${rootURL}/plugin/simpleupdatesite/img/showplugins.gif"
      								tooltip="Show all hidden plugins"
      								onclick="javascript:showAllHiddenPlugins('${rootURL}/plugin/simpleupdatesite/showAllHiddenPlugins', this)" />
      ----
      
      == Inline Event Handler
      Line: 105
      ----
      <img style="cursor:hand"
      								src="${rootURL}/plugin/simpleupdatesite/img/hideplugins.gif"
      								tooltip="Hide selected plugins"
      								onclick="javascript:hideSelectedPlugins('${rootURL}/plugin/simpleupdatesite/hidePlugins', document.pluginInstallForm, this)" />
      ----
      
      == Inline Event Handler
      Line: 127
      ----
      <img style="cursor:hand"
      						src="${rootURL}/plugin/simpleupdatesite/img/refreshplugininfo.gif"
      						tooltip="Refresh Announcements"
      						onclick="javascript:refreshNews('${rootURL}/plugin/simpleupdatesite/refreshNews', this)" />
      ----
      

      Solution

      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: