-
Task
-
Resolution: Fixed
-
Minor
Problems
== Inline Script Block Line: 44 ---- <script> hudsonRules["DIV.views-tree"] = function(e) { var tree = new YAHOO.widget.TreeView(e); var root = tree.getRoot(); var values = (e.getAttribute("values") || "").split(","); function has(v) { return values.includes(v) ? 'checked="checked" ' : ""; } var views = {}; <local:add-children parentView="root" views="${it.owner.views}" prefix=""/> tree.draw(); <!-- force the rendering of HTML, so that input fields are there even when the form is submitted without this tree expanded. --> tree.expandAll(); tree.collapseAll(); <!-- cancel the event. from http://yuilibrary.com/forum/viewtopic.php?f=89&t=8209&p=26239&hilit=HTMLNode#p26239 "To prevent toggling and allow the link to work, add a listener to the clickEvent on that tree and simply return false" --> tree.subscribe("clickEvent", function(node) { return false; }); }; </script> ---- == Inline Script Block Line: 44 ---- <script> hudsonRules["DIV.views-tree"] = function(e) { var tree = new YAHOO.widget.TreeView(e); var root = tree.getRoot(); var values = (e.getAttribute("values") || "").split(","); function has(v) { return values.includes(v) ? 'checked="checked" ' : ""; } var views = {}; <local:add-children parentView="root" views="${it.owner.views}" prefix=""/> tree.draw(); <!-- force the rendering of HTML, so that input fields are there even when the form is submitted without this tree expanded. --> tree.expandAll(); tree.collapseAll(); <!-- cancel the event. from http://yuilibrary.com/forum/viewtopic.php?f=89&t=8209&p=26239&hilit=HTMLNode#p26239 "To prevent toggling and allow the link to work, add a listener to the clickEvent on that tree and simply return false" --> tree.subscribe("clickEvent", function(node) { return false; }); }; </script> ----
Solution
https://www.jenkins.io/doc/developer/security/csp/#inline-javascript-blocks
- links to
[JENKINS-74129] [sectioned-view] Extract inline script blocks in hudson/plugins/sectioned_view/ViewListingSection/config.jelly
Assignee | Original: Timothy Bingaman [ tbingaman ] |
Assignee | New: Markus Winter [ mawinter69 ] |
Remote Link | New: This issue links to "PR-38 (Web Link)" [ 30097 ] |
Resolution | New: Fixed [ 1 ] | |
Status | Original: Open [ 1 ] | New: Fixed but Unreleased [ 10203 ] |
Released As | New: 1.28 | |
Status | Original: Fixed but Unreleased [ 10203 ] | New: Closed [ 6 ] |
Fixed in jenkinsci/sectioned-view-plugin#38. Released in 1.28.