mirror of
https://github.com/transmission/transmission
synced 2025-02-20 21:26:53 +00:00
fix "Error: remove is not defined"
This commit is contained in:
parent
652811502a
commit
6add1bc28b
1 changed files with 3 additions and 1 deletions
|
@ -1873,6 +1873,7 @@ Transmission.prototype =
|
|||
|
||||
var keep = [ ]
|
||||
var elements = [ ]
|
||||
var removedAny = false
|
||||
|
||||
for(var i=0, row; row=this._rows[i]; ++i) {
|
||||
var tor = row.getTorrent()
|
||||
|
@ -1880,6 +1881,7 @@ Transmission.prototype =
|
|||
if( torrent_ids.indexOf( tid ) == -1 )
|
||||
keep.push( row )
|
||||
else {
|
||||
removedAny = true
|
||||
delete this._torrents[ tid ]
|
||||
$(row.getElement()).remove()
|
||||
}
|
||||
|
@ -1887,7 +1889,7 @@ Transmission.prototype =
|
|||
|
||||
this._rows = keep
|
||||
|
||||
return remove.length > 0
|
||||
return removedAny
|
||||
},
|
||||
|
||||
refreshDisplay: function( )
|
||||
|
|
Loading…
Reference in a new issue