/usr/share/dspam/dspam.js is in dspam-webfrontend 3.10.2+dfsg-13.
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 | // $Id: dspam.js,v 1.02 2009/12/25 03:00:40 sbajic Exp $
// Select intermediate checkboxes on shift-click
var shifty = false;
var lastcheckboxchecked = false;
function checkboxclicked(checkbox)
{
var num = checkbox.id.split('-')[1];
if (lastcheckboxchecked && shifty) {
var start = Math.min(num, lastcheckboxchecked) + 1;
var end = Math.max(num, lastcheckboxchecked) - 1;
var value = checkbox.checked;
for (i=start; i <= end; ++i) {
document.getElementById("checkbox-"+i).checked = value;
}
}
lastcheckboxchecked = num;
}
function recordshiftiness(e)
{
if (!e) var e = window.event;
shifty = e && ((typeof (e.shiftKey) != 'undefined' && e.shiftKey) ||
e.modifiers & event.SHIFT_MASK);
}
if (window.event) document.captureEvents (event.MOUSEDOWN);
document.onmousedown = recordshiftiness;
|