Changeset 12816


Ignore:
Timestamp:
Aug 31, 2011, 4:39:24 AM (12 years ago)
Author:
jordan
Message:

(trunk web) #4452 "stop/start toggle button doesn't work properly on Chrome 13" -- fixed. Gunzip deserves danger pay for all this web client testing.

File:
1 edited

Legend:

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

    r12813 r12816  
    10971097        onRowClicked: function(ev, row)
    10981098        {
     1099                // handle the per-row "torrent_resume" button
     1100                if (ev.target.className === 'torrent_resume') {
     1101                        this.startTorrent(row.getTorrent());
     1102                        return;
     1103                }
     1104
     1105                // handle the per-row "torrent_pause" button
     1106                if (ev.target.className === 'torrent_pause') {
     1107                        this.stopTorrent(row.getTorrent());
     1108                        return;
     1109                }
     1110
    10991111                // Prevents click carrying to parent element
    11001112                // which deselects all on click
     
    13421354        ****
    13431355        ***/
    1344 
    1345         onToggleRunningClicked: function(ev)
    1346         {
    1347                 var t, i, e;
    1348                 e = $(ev.target).closest('.torrent')[0];
    1349                 i = $('#torrent_list > li').index(e);
    1350                 if ((0<=i) && (i<this._rows.length)) {
    1351                         t = this._rows[i].getTorrent();
    1352                         if (t.isStopped())
    1353                                 this.startTorrent(t);
    1354                         else
    1355                                 this.stopTorrent(t);
    1356                 }
    1357         },
    13581356
    13591357        setEnabled: function(key, flag)
     
    19271925        refilterSoon: function()
    19281926        {
    1929                 if (!this.refilterTimer)
    1930                         this.refilterTimer = setTimeout($.proxy(this.refilter,this), 100);
     1927                if (!this.refilterTimer) {
     1928                        var tr = this;
     1929                        this.refilterTimer = setTimeout(function(){tr.refilter(false);}, 100);
     1930                }
    19311931        },
    19321932
     
    20092009                                row.getElement().row = row;
    20102010                                dirty_rows.push(row);
    2011                                 if ((e = row.getToggleRunningButton()))
    2012                                         $(e).click($.proxy(this.onToggleRunningClicked,this));
    20132011                        }
    20142012                }
Note: See TracChangeset for help on using the changeset viewer.