only set the background-image once

This commit is contained in:
Damien Churchill 2008-10-14 00:37:51 +00:00
parent f5482d6a92
commit 3cb046c34c
1 changed files with 4 additions and 4 deletions

View File

@ -262,12 +262,12 @@ Deluge.Widgets.LabelSection = new Class({
el = new Element('li').addClass(lname);
el.store('filterName', name)
el.addEvent('click', this.bound.clicked);
if (this.name == 'tracker_host') {
var icon = 'url(http://' + name + '/favicon.ico)';
el.setStyle('background-image', icon);
};
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);