var e;
e = progressbar.complete;
e.style.width = '' + info.percent + "%";
- e.className = info.complete;
+ if (e.className !== info.complete)
+ e.className = info.complete;
e.style.display = info.percent<=0 ? 'none' : 'block';
e = progressbar.incomplete;
- e.className = info.incomplete;
+ if (e.className !== info.incomplete)
+ e.className = info.incomplete;
e.style.display = info.percent>=100 ? 'none' : 'block';
};
this.setPref(Prefs._ShowInspector, true);
this.updateInspector();
- this.refreshDisplay();
},
/*
}
this.setPref(Prefs._ShowInspector, false);
- this.refreshDisplay();
},
refreshMetaData: function(ids) {
}
},
- refreshDisplay: function()
- {
- for (var i=0, row; row=this._rows[i]; ++i)
- row.render(this);
- },
-
/*
* Set the alternating background colors for torrents
*/
if (!this.refilterTimer)
{
var tr = this;
- this.refilterTimer = setTimeout(function() {tr.refilter();}, 200);
+ this.refilterTimer = setTimeout(function() {tr.refilter();}, 500);
}
},
fragment.appendChild(row.getElement());
rows.push(row);
}
- $('ul.torrent_list li').remove();
+ $('ul.torrent_list').empty();
delete this._rows;
this._rows = rows;
this._torrent_list.appendChild(fragment);
this.updateStatusbar();
if (sel.length !== new_sel_count)
this.selectionChanged();
- this.refreshDisplay();
this.refreshFilterButton();
},