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

[ease-plugin] Extract inline script block in org/jenkinsci/plugins/apperian/ApperianRecorder/config.jelly

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: Minor Minor
    • ease-plugin

      Problem

      == Inline Script Block
      Line: 9
      ----
      <script>
            function hideShowUrls(selectEl) {
              var tr = selectEl.parentNode.parentNode.parentNode;
              var isCustom = selectEl.value === 'CUSTOM';
              findElementsBySelector(tr, ".fieldCustomURLs").each(function (el) {
                  el.parentNode.parentNode.style.display = isCustom ? '' : 'none';
              });
            }
      
            Behaviour.register({
              ".prodEnv" : function(el) {
                  el.onchange = function () { hideShowUrls(el); };
                  hideShowUrls(el);
              },
            });
          </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: