From c143891c9352cf47bf199ecc2b2387b29bb08763 Mon Sep 17 00:00:00 2001 From: Damien Churchill Date: Sat, 21 Mar 2009 11:53:05 +0000 Subject: [PATCH] clear the details pane when there are no selected torrents in the grid --- deluge/ui/web/js/deluge-details.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/deluge/ui/web/js/deluge-details.js b/deluge/ui/web/js/deluge-details.js index f8d9a4296..8892d6ff2 100644 --- a/deluge/ui/web/js/deluge-details.js +++ b/deluge/ui/web/js/deluge-details.js @@ -31,7 +31,10 @@ Deluge.Details = { update: function(tab) { var torrent = Deluge.Torrents.getSelected(); - if (!torrent) return; + if (!torrent) { + this.clear(); + return; + } tab = tab || this.Panel.getActiveTab(); if (tab.update) {