/usr/share/horde/wicked/js/edit.js is in php-horde-wicked 2.0.7-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 18 19 | var WickedEdit = {
loadPreview: function()
{
var f = $('wicked-edit'), oldAction = f.action;
f.action = 'preview.php';
f.target = '_blank';
f.submit();
f.action = oldAction;
f.target = '';
},
onDomLoad: function()
{
$('wicked-preview').observe('click', this.loadPreview);
}
};
document.observe('dom:loaded', WickedEdit.onDomLoad.bind(WickedEdit));
|