/usr/share/horde/wicked/js/history.js is in php-horde-wicked 2.0.1-1.
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 | var WickedHistory = {
onClick: function(e)
{
var elm = e.findElement();
if (elm.tagName == 'INPUT' && elm.type == 'submit') {
var value = $('wicked-diff')
.getInputs('radio', 'v1')
.find(function(radio) { return radio.checked; });
if ($F(elm) == $F(value)) {
e.stop();
}
$('wicked-diff-v2').setValue($F(elm));
}
}
};
$('wicked-diff').observe('click', WickedHistory.onClick);
|