/usr/share/checkbox/report/checkbox.js is in checkbox 0.13.7.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | function showHide(what) {
var heading = document.getElementById(what);
var contents = document.getElementById(what + "-contents");
var headingcontents = heading.innerHTML;
var newcontents;
if (contents.style.display != "block") {
newcontents = headingcontents.replace("closed", "open");
contents.style.display = "block";
} else {
newcontents = headingcontents.replace("open", "closed");
contents.style.display = "none";
}
heading.innerHTML = newcontents;
}
|