mirror of
https://github.com/codex-storage/deluge.git
synced 2025-02-19 22:58:30 +00:00
add dynamic tracker host icons
This commit is contained in:
parent
08fd7a14f9
commit
f5482d6a92
@ -264,6 +264,10 @@ Deluge.Widgets.LabelSection = new Class({
|
|||||||
el.addEvent('click', this.bound.clicked);
|
el.addEvent('click', this.bound.clicked);
|
||||||
this.list.grab(el);
|
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 +')');
|
el.set('text', name + ' (' + count +')');
|
||||||
}, this);
|
}, this);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user