(trunk clutch) #2996 "turn error torrents red in the main window" -- added.

This commit is contained in:
Charles Kerr
2010-07-29 17:45:23 +00:00
parent 56f9f899a2
commit 2f09baa8b9
2 changed files with 19 additions and 1 deletions

View File

@@ -652,9 +652,14 @@ Torrent.prototype =
e.className = 'torrent_progress_bar ' + status;
}
var hasError = this.getErrorMessage( ) != undefined;
// Update the progress details
if(compact_mode)
if(compact_mode){
progress_details = this.getPeerDetails();
$(root._progress_details_container).toggleClass('error',hasError);
} else {
$(root._peer_details_container).toggleClass('error',hasError);
}
setInnerHTML( root._progress_details_container, progress_details );
// Update the peer details and pause/resume button