diff --git a/dependency-check-core/src/main/resources/templates/HtmlReport.vsl b/dependency-check-core/src/main/resources/templates/HtmlReport.vsl index 4c4f95d8d..52062ca6f 100644 --- a/dependency-check-core/src/main/resources/templates/HtmlReport.vsl +++ b/dependency-check-core/src/main/resources/templates/HtmlReport.vsl @@ -84,13 +84,14 @@ Copyright (c) 2012 Jeremy Long. All Rights Reserved. $('#modal-text').focus(); $('#modal-text').select(); } - function toggleDisplay(el, clzName) { + function toggleDisplay(el, clzName, all, some) { $(clzName).toggle(); - if (el.innerHTML == 'Show All') { - el.innerHTML = 'Showing Vulnerable Dependencies'; + if (el.innerHTML == all) { + el.innerHTML = some; } else { - el.innerHTML = 'Show All'; + el.innerHTML = all; } + return false; }