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

XMLWordPrintable

    • Type: Task
    • Resolution: Unresolved
    • Priority: Minor
    • Component/s: 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

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

              Created:
              Updated: