Changeset 12722


Ignore:
Timestamp:
Aug 24, 2011, 12:54:10 PM (10 years ago)
Author:
jordan
Message:

(trunk web) apply the even/odd property to the row's class before adding the fragment, rather than after

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/web/javascript/transmission.js

    r12721 r12722  
    16701670        },
    16711671
    1672         /*
    1673          * Set the alternating background colors for torrents
    1674          */
    1675         setTorrentBgColors: function()
    1676         {
    1677                 for (var i=0, row; row=this._rows[i]; ++i)
    1678                         row.setEven((i+1) % 2 == 0);
    1679         },
    1680 
    16811672        updateStatusbar: function()
    16821673        {
     
    20372028                        var is_selected = sel.indexOf(tor) !== -1;
    20382029                        var row = new TorrentRow(this.torrentRenderer, this, tor, is_selected);
     2030                        row.setEven((i+1) % 2 == 0);
    20392031                        if (is_selected)
    20402032                                new_sel_count++;
     
    20552047
    20562048                // sync gui
    2057                 this.setTorrentBgColors();
    20582049                this.updateStatusbar();
    20592050                if (sel.length !== new_sel_count)
Note: See TracChangeset for help on using the changeset viewer.