diff --git a/src/main/resources/hudson/plugins/depgraph_view/AbstractDependencyGraphAction/jsplumb-config.js b/src/main/resources/hudson/plugins/depgraph_view/AbstractDependencyGraphAction/jsplumb-config.js new file mode 100644 index 0000000..bfc0b32 --- /dev/null +++ b/src/main/resources/hudson/plugins/depgraph_view/AbstractDependencyGraphAction/jsplumb-config.js @@ -0,0 +1,7 @@ +document.addEventListener('DOMContentLoaded', function() { + const config = document.querySelector(".jsplumb-config").dataset; + + window.depview.editEnabled = config.editEnabled === "true"; + window.depview.projectNameStripRegex = new RegExp(config.nameStripRegex, 'g'); + window.depview.projectNameStripRegexGroup = config.regexGroup; +}); diff --git a/src/main/resources/hudson/plugins/depgraph_view/AbstractDependencyGraphAction/jsplumb.jelly b/src/main/resources/hudson/plugins/depgraph_view/AbstractDependencyGraphAction/jsplumb.jelly index 6e60348..1d0c765 100644 --- a/src/main/resources/hudson/plugins/depgraph_view/AbstractDependencyGraphAction/jsplumb.jelly +++ b/src/main/resources/hudson/plugins/depgraph_view/AbstractDependencyGraphAction/jsplumb.jelly @@ -59,11 +59,8 @@ - + +