-
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