(web) #5214 'add free space indicator': added with patch by taem

This commit is contained in:
Jordan Lee
2013-01-27 17:41:35 +00:00
parent 895f86e0fb
commit 729ef84e62
7 changed files with 49 additions and 1 deletions

View File

@@ -1080,6 +1080,7 @@ Transmission.prototype =
menu = $('#settings_menu');
this.serverVersion = o.version;
this.freeSpace = o[RPC._DownloadDirFreeSpace];
this.prefsDialog.set(o);
@@ -1145,6 +1146,12 @@ Transmission.prototype =
$('#speed-dn-container').toggleClass('active', d>0 );
$('#speed-dn-label').text( fmt.speedBps( d ) );
if (this.freeSpace > 0)
text = fmt.size (this.freeSpace);
else
text = '';
$('#freespace-info').text( text);
// visible torrents
$('#filter-count').text( fmt.countString('Transfer','Transfers',this._rows.length ) );
},