Changeset 13522
- Timestamp:
- Sep 23, 2012, 5:21:19 PM (10 years ago)
- Location:
- trunk/web/javascript
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/web/javascript/file-row.js
r13437 r13522 175 175 this.getPath = function () { 176 176 var file = torrent.getFile(i); 177 path = file.name.replace(/\/\/+/g,'/') 178 path = path.split('/').slice(0,-1) 179 path.push('t' + fields.torrent.getId() + 'f' + fields.index) 180 return path 177 var path = file.name.replace(/\/\/+/g,'/'); 178 path = path.split('/').slice(0,-1); 179 path.push('t' + fields.torrent.getId() + 'f' + fields.index); 180 return path; 181 181 }; 182 182 -
trunk/web/javascript/inspector.js
r13521 r13522 514 514 data.file_rows = []; 515 515 fragment = document.createDocumentFragment(); 516 516 heirarchy = {'/':[]} 517 517 518 518 for (i=0; i<n; ++i) { … … 538 538 } 539 539 } 540 console.log(heirarchy); 540 541 /* 541 542 At this point we have a single object containing the whole
Note: See TracChangeset
for help on using the changeset viewer.