(trunk web) #5013 "WebUI Inspector file tree" -- use patch submitted by PsychoMario

This commit is contained in:
Jordan Lee
2012-08-18 15:04:06 +00:00
parent 9221f8a248
commit a06a48dad3
2 changed files with 121 additions and 1 deletions

View File

@@ -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);
};