/usr/share/horde/trean/js/toptags.js is in php-horde-trean 1.1.4-1build1.
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 | var TreanTopTags = {
loadTags: function(r)
{
$('loadTags').hide();
var t = new Element('ul', { className: 'horde-tags' });
r.tags.each(function(tag) {
if (tag == null) {
return;
}
var item = new Element('li', { className: 'treanBookmarkTag' }).update(tag.escapeHTML());
item.observe('click', function() { TreanTopTags.add(tag); });
t.insert(item);
});
$('treanBookmarkTopTags').update(t);
new Effect.Appear($('treanTopTagsWrapper'));
},
add: function(tag)
{
HordeImple.AutoCompleter.treanBookmarkTags.addNewItemNode(tag);
}
}
|