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

[copyartifact] Extract inline event handlers in hudson/plugins/copyartifact/monitor/LegacyJobConfigMigrationMonitor/manage.jelly

XMLWordPrintable

      Problems

      == Inline Event Handler
      Line: 39
      ----
      <a href="#"
                             class="action"
                             title="${%SelectAll.title}"
                             onclick="selectAll(this);return false;">
      ----
      
      == Inline Event Handler
      Line: 43
      ----
      <a href="#"
                             class="action"
                             title="${%SelectAllMigratable.title}"
                             onclick="selectAllMigratable(this);return false;">
      ----
      
      == Inline Event Handler
      Line: 47
      ----
      <a href="#"
                             class="action"
                             title="${%SelectAllValid.title}"
                             onclick="selectAllValid(this);return false;">
      ----
      
      == Inline Event Handler
      Line: 51
      ----
      <a href="#"
                             class="action"
                             title="${%SelectAllInvalid.title}"
                             onclick="selectAllInvalid(this);return false;">
      ----
      
      == Inline Event Handler
      Line: 58
      ----
      <button class="action-migrate-selected" onclick="confirmAndMigrateAllSelected(this);"
                                      data-url="${rootURL}/${it.url}/migrateAllSelected"
                                      data-confirm-template="${%MigrateAllSelected_confirm}"
                                      data-nothing-selected="${%MigrateAllSelected_nothing}">
      ----
      
      == Inline Event Handler
      Line: 66
      ----
      <button class="action-ignore-selected" onclick="confirmAndIgnoreAllSelected(this);"
                                      data-url="${rootURL}/${it.url}/ignoreAllSelected"
                                      data-confirm-template="${%IgnoreAllSelected_confirm}"
                                      data-nothing-selected="${%IgnoreMigrateAllSelected_nothing}">
      ----
      
      == Inline Event Handler
      Line: 187
      ----
      <a href="#"
                             class="action"
                             title="${%SelectAll.title}"
                             onclick="selectAll(this);return false;">
      ----
      
      == Inline Event Handler
      Line: 191
      ----
      <a href="#"
                             class="action"
                             title="${%SelectAllMigratable.title}"
                             onclick="selectAllMigratable(this);return false;">
      ----
      
      == Inline Event Handler
      Line: 195
      ----
      <a href="#"
                             class="action"
                             title="${%SelectAllValid.title}"
                             onclick="selectAllValid(this);return false;">
      ----
      
      == Inline Event Handler
      Line: 199
      ----
      <a href="#"
                             class="action"
                             title="${%SelectAllInvalid.title}"
                             onclick="selectAllInvalid(this);return false;">
      ----
      
      == Inline Event Handler
      Line: 207
      ----
      <button class="action-migrate-selected" onclick="confirmAndMigrateAllSelected(this);"
                                      data-url="${rootURL}/${it.url}/migrateAllSelected"
                                      data-confirm-template="${%MigrateAllSelected_confirm}"
                                      data-nothing-selected="${%MigrateAllSelected_nothing}">
      ----
      
      == Inline Event Handler
      Line: 215
      ----
      <button class="action-ignore-selected" onclick="confirmAndIgnoreAllSelected(this);"
                                      data-url="${rootURL}/${it.url}/ignoreAllSelected"
                                      data-confirm-template="${%IgnoreAllSelected_confirm}"
                                      data-nothing-selected="${%IgnoreMigrateAllSelected_nothing}">
      ----
      
      == Inline Event Handler
      Line: 39
      ----
      <a href="#"
                             class="action"
                             title="${%SelectAll.title}"
                             onclick="selectAll(this);return false;">
      ----
      
      == Inline Event Handler
      Line: 43
      ----
      <a href="#"
                             class="action"
                             title="${%SelectAllMigratable.title}"
                             onclick="selectAllMigratable(this);return false;">
      ----
      
      == Inline Event Handler
      Line: 47
      ----
      <a href="#"
                             class="action"
                             title="${%SelectAllValid.title}"
                             onclick="selectAllValid(this);return false;">
      ----
      
      == Inline Event Handler
      Line: 51
      ----
      <a href="#"
                             class="action"
                             title="${%SelectAllInvalid.title}"
                             onclick="selectAllInvalid(this);return false;">
      ----
      
      == Inline Event Handler
      Line: 58
      ----
      <button class="action-migrate-selected" onclick="confirmAndMigrateAllSelected(this);"
                                      data-url="${rootURL}/${it.url}/migrateAllSelected"
                                      data-confirm-template="${%MigrateAllSelected_confirm}"
                                      data-nothing-selected="${%MigrateAllSelected_nothing}">
      ----
      
      == Inline Event Handler
      Line: 66
      ----
      <button class="action-ignore-selected" onclick="confirmAndIgnoreAllSelected(this);"
                                      data-url="${rootURL}/${it.url}/ignoreAllSelected"
                                      data-confirm-template="${%IgnoreAllSelected_confirm}"
                                      data-nothing-selected="${%IgnoreMigrateAllSelected_nothing}">
      ----
      
      == Inline Event Handler
      Line: 187
      ----
      <a href="#"
                             class="action"
                             title="${%SelectAll.title}"
                             onclick="selectAll(this);return false;">
      ----
      
      == Inline Event Handler
      Line: 191
      ----
      <a href="#"
                             class="action"
                             title="${%SelectAllMigratable.title}"
                             onclick="selectAllMigratable(this);return false;">
      ----
      
      == Inline Event Handler
      Line: 195
      ----
      <a href="#"
                             class="action"
                             title="${%SelectAllValid.title}"
                             onclick="selectAllValid(this);return false;">
      ----
      
      == Inline Event Handler
      Line: 199
      ----
      <a href="#"
                             class="action"
                             title="${%SelectAllInvalid.title}"
                             onclick="selectAllInvalid(this);return false;">
      ----
      
      == Inline Event Handler
      Line: 207
      ----
      <button class="action-migrate-selected" onclick="confirmAndMigrateAllSelected(this);"
                                      data-url="${rootURL}/${it.url}/migrateAllSelected"
                                      data-confirm-template="${%MigrateAllSelected_confirm}"
                                      data-nothing-selected="${%MigrateAllSelected_nothing}">
      ----
      
      == Inline Event Handler
      Line: 215
      ----
      <button class="action-ignore-selected" onclick="confirmAndIgnoreAllSelected(this);"
                                      data-url="${rootURL}/${it.url}/ignoreAllSelected"
                                      data-confirm-template="${%IgnoreAllSelected_confirm}"
                                      data-nothing-selected="${%IgnoreMigrateAllSelected_nothing}">
      ----
      

      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:
              Resolved: