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

[keyboard-shortcuts-plugin] Extract inline script block in org/jenkins/ci/plugins/keyboard_shortcuts/KeyboardShortcutsPageDecorator/header.jelly

XMLWordPrintable

      Problem

      == Inline Script Block
      Line: 29
      ----
      <script type="text/javascript">
          var ks_enabled               = !${it.disabled};
          var ks_is_job_page           = ${it.jobPage};
          var ks_is_view_page          = ${it.viewPage};
          var ks_is_search_page        = ${it.searchPage};
          var ks_is_node_page          = ${it.nodePage};
          var ks_url                   = '${it.baseUrl}';
          var ks_url_view              = '${it.baseViewUrl}';
          var ks_url_job               = '${it.baseJobUrl}';
          var ks_is_job_parameterized  = ${it.jobParameterized};
          var ks_view_job_names        = ${it.allViewJobNamesAsJson};
          var ks_jobs                  = ${it.allJobsAsJson};
          var ks_views                 = ${it.allViewsAsJson};
          var ks_nodes                 = ${it.allNodesAsJson};
          var ks_permalinks            = ${it.allPermalinksAsJson};
          var ks_is_view_selector      = false;
          var ks_is_job_selector       = false;
          var ks_is_node_selector      = false;
          var ks_is_permalink_selector = false;
          var ks_selector_filter       = '';
          var ks_search_item_selected  = '';
          var ks_node_selected         = '';
        </script>
      ----
      

      Solution

      https://www.jenkins.io/doc/developer/security/csp/#inline-javascript-blocks

            Unassigned Unassigned
            basil Basil Crow
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: