-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[JENKINS-74072] Extract inline JavaScript from `DependencyCheck/Resul…
…tAction/index.jelly`
- Loading branch information
1 parent
a9c49bb
commit c9e41cd
Showing
2 changed files
with
15 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
src/main/resources/org/jenkinsci/plugins/DependencyCheck/ResultAction/resource.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
window.addEventListener("DOMContentLoaded", () => { | ||
view.getSeverityDistributionJson(function (data) { | ||
var json = data.responseJSON; | ||
generateSeverityDistributionBar("severity-distribution", "Severity Distribution", | ||
json.critical, json.high, json.medium, json.low, json.info, json.unassigned); | ||
}); | ||
|
||
view.getFindingsJson(function (data) { | ||
(function ($) { | ||
$('.table').footable(data.responseJSON); | ||
})(jQuery); | ||
}); | ||
}); |