mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 04:18:39 +00:00
(trunk clutch) #2996 "turn error torrents red in the main window" -- added.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user