]> granicus.if.org Git - transmission/commitdiff
#3519 "webseeds don't work" -- the `active' filter in the web client didn't test...
authorJordan Lee <jordan@transmissionbt.com>
Wed, 19 Jan 2011 00:07:59 +0000 (00:07 +0000)
committerJordan Lee <jordan@transmissionbt.com>
Wed, 19 Jan 2011 00:07:59 +0000 (00:07 +0000)
web/javascript/torrent.js

index f09cb7270745e9764713dace6083b7b29c0e8b4d..965231edeefe6b33ff4214880cc268605e61db3e 100644 (file)
@@ -231,13 +231,15 @@ Torrent.prototype =
        hash: function() { return this._hashString; },
        id: function() { return this._id; },
        isActiveFilter: function() { return this.peersGettingFromUs() > 0
-                                       || this.peersSendingToUs() > 0
-                                       || this.state() == Torrent._StatusChecking; },
+                                        || this.peersSendingToUs() > 0
+                                        || this.webseedsSendingToUs() > 0
+                                        || this.state() == Torrent._StatusChecking; },
        isActive: function() { return this.state() != Torrent._StatusPaused; },
        isDownloading: function() { return this.state() == Torrent._StatusDownloading; },
        isFinished: function() { return this._isFinishedSeeding; },
        isSeeding: function() { return this.state() == Torrent._StatusSeeding; },
        name: function() { return this._name; },
+       webseedsSendingToUs: function() { return this._webseeds_sending_to_us; },
        peersSendingToUs: function() { return this._peers_sending_to_us; },
        peersGettingFromUs: function() { return this._peers_getting_from_us; },
        needsMetaData: function(){ return this._metadataPercentComplete < 1 },
@@ -395,6 +397,7 @@ Torrent.prototype =
                this._peers_connected         = data.peersConnected;
                this._peers_getting_from_us   = data.peersGettingFromUs;
                this._peers_sending_to_us     = data.peersSendingToUs;
+               this._webseeds_sending_to_us  = data.webseedsSendingToUs;
                this._sizeWhenDone            = data.sizeWhenDone;
                this._recheckProgress         = data.recheckProgress;
                this._error                   = data.error;