(trunk web) very minor optimizations

This commit is contained in:
Charles Kerr
2009-05-24 15:48:18 +00:00
parent aadd7b9eaf
commit d9623ef597
2 changed files with 56 additions and 56 deletions

View File

@@ -100,24 +100,25 @@ Torrent.prototype =
// using <li>'s in straight html, but adding through the DOM gets a bit odd.
if ($.browser.safari)
this._element.css('margin-top', '7px');
// insert the element
domParent.appendChild(top_e);
this.initializeTorrentFilesInspectorGroup();
for( var i=0; data.files!=null && i<data.files.length; ++i ) {
var src = data.files[i];
this._file_model[i] = {
'index': i,
'torrent': this,
'length': src.length,
'name': src.name
};
if( data.files ) {
for( var i=0, row; row=data.files[i]; ++i ) {
this._file_model[i] = {
'index': i,
'torrent': this,
'length': row.length,
'name': row.name
};
}
}
// Update all the labels etc
this.refresh(data);
// insert the element
domParent.appendChild(top_e);
},
initializeTorrentFilesInspectorGroup: function(length) {