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
1 changed files with 5 additions and 2 deletions

View File

@ -996,7 +996,7 @@ Transmission.prototype =
needinfo.push(id);
}
else {
t = tr._torrents[id] = new Torrent(o);
t = this._torrents[id] = new Torrent(o);
this.dirtyTorrents[id] = true;
$(t).bind('dataChanged',$.proxy(this.onTorrentChanged,this));
if(!('name' in t.fields) || !('status' in t.fields)) // missing some fields...
@ -1586,8 +1586,11 @@ Transmission.prototype =
this.dirtyTorrents = { };
// jquery's even/odd starts with 1 not 0, so invert its logic
e = []
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
this.updateStatusbar();