add dynamic tracker host icons

This commit is contained in:
Damien Churchill 2008-10-14 00:31:59 +00:00
parent 08fd7a14f9
commit f5482d6a92
1 changed files with 4 additions and 0 deletions

View File

@ -264,6 +264,10 @@ Deluge.Widgets.LabelSection = new Class({
el.addEvent('click', this.bound.clicked);
this.list.grab(el);
}
if (this.name == 'tracker_host') {
var icon = 'url(http://' + name + '/favicon.ico)';
el.setStyle('background-image', icon);
};
el.set('text', name + ' (' + count +')');
}, this);