mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 04:18:39 +00:00
(trunk web) #5013 "WebUI Inspector file tree" -- use patch submitted by PsychoMario
This commit is contained in:
@@ -172,6 +172,13 @@ function FileRow(torrent, i)
|
||||
this.isEditable = function () {
|
||||
return (fields.torrent.getFileCount()>1) && !isDone();
|
||||
};
|
||||
this.getPath = function () {
|
||||
var file = torrent.getFile(i);
|
||||
path = file.name.replace(/\/\/+/g,'/')
|
||||
path = path.split('/').slice(0,-1)
|
||||
path.push('t' + fields.torrent.getId() + 'f' + fields.index)
|
||||
return path
|
||||
};
|
||||
|
||||
initialize(torrent, i);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user