From 19e56b8e5ec365d6424e1ca0449379a58d858ebf Mon Sep 17 00:00:00 2001 From: Kevin Glowacz Date: Tue, 28 Jul 2009 04:52:47 +0000 Subject: [PATCH] (trunk web) ability to get global seed ratio --- web/javascript/transmission.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/web/javascript/transmission.js b/web/javascript/transmission.js index 4a513af84..51c50520a 100644 --- a/web/javascript/transmission.js +++ b/web/javascript/transmission.js @@ -386,6 +386,13 @@ Transmission.prototype = container.scrollTop( offsetTop + offsetHeight - innerHeight ); }, + seedRatio: function(){ + if(this._prefs && this._prefs['seedRatioLimited']) + return this._prefs['seedRatioLimit']; + else + return -1; + }, + /*-------------------------------------------- * * S E L E C T I O N