/usr/share/horde/wicked/js/toc.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 | /**
* Javascript code for making the TOC collapsible.
*
* See the enclosed file COPYING for license information (GPL). If you
* did not receive this file, see http://www.horde.org/licenses/gpl.
*/
document.observe('dom:loaded', function() {
var h2 = $('toc').down('h2'),
ol = $('toc').down('ol');
if (!ol) {
return;
}
h2.setStyle({ cursor: 'pointer' });
h2.observe('click', ol.toggle.bind(ol));
});
|