1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-26 09:37:56 +00:00

tweak r12834. I shouldn't commit when I'm tired.

This commit is contained in:
Jordan Lee 2011-09-03 07:29:53 +00:00
parent b18c1b2087
commit 2944752972

View file

@ -996,7 +996,7 @@ Transmission.prototype =
needinfo.push(id); needinfo.push(id);
} }
else { else {
t = tr._torrents[id] = new Torrent(o); t = this._torrents[id] = new Torrent(o);
this.dirtyTorrents[id] = true; this.dirtyTorrents[id] = true;
$(t).bind('dataChanged',$.proxy(this.onTorrentChanged,this)); $(t).bind('dataChanged',$.proxy(this.onTorrentChanged,this));
if(!('name' in t.fields) || !('status' in t.fields)) // missing some fields... if(!('name' in t.fields) || !('status' in t.fields)) // missing some fields...
@ -1586,8 +1586,11 @@ Transmission.prototype =
this.dirtyTorrents = { }; this.dirtyTorrents = { };
// jquery's even/odd starts with 1 not 0, so invert its logic // jquery's even/odd starts with 1 not 0, so invert its logic
e = []
for (i=0; row=rows[i]; ++i) for (i=0; row=rows[i]; ++i)
$(row.getElement()).toggleClass('even',(i%2)!==0); e.push(row.getElement());
$(e).filter(":odd").addClass('even');
$(e).filter(":even").removeClass('even');
// sync gui // sync gui
this.updateStatusbar(); this.updateStatusbar();