/usr/share/bcfg2/site_media/bcfg2.js is in bcfg2-web 1.3.3-1ubuntu3.
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 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | function hide_table_array(ar) {
for(i=0; i < ar.length; i++) {
toggleMe(ar[i]);
};
}
function clientdetailload() {
toggleMe('bad_table');
toggleMe('modified_table');
toggleMe('extra_table');
}
function toggleMe(elementId) {
var element = document.getElementById(elementId);
if (element) {
element.style.display = (element.style.display != 'none' ? 'none' : '');
var plusminus = document.getElementById("plusminus_" + elementId);
if (element.style.display == 'none') {
plusminus.innerHTML = "[+]"
} else {
plusminus.innerHTML = "[−]"
}
}
}
function pageJump(elementId) {
url = '';
element = document.getElementById(elementId);
if (element) {
url = element.value;
}
if (url) {
location.href = url;
}
}
|