From ccce1938aca91b7c420bf67fe93e60feb9829d72 Mon Sep 17 00:00:00 2001 From: Damien Churchill Date: Tue, 14 Oct 2008 01:10:17 +0000 Subject: [PATCH] add transparency to the tab to simulate greying out when a torrent isn't selected --- deluge/ui/webui/templates/ajax/static/js/deluge-details.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/deluge/ui/webui/templates/ajax/static/js/deluge-details.js b/deluge/ui/webui/templates/ajax/static/js/deluge-details.js index 5df0728d6..04aec71af 100644 --- a/deluge/ui/webui/templates/ajax/static/js/deluge-details.js +++ b/deluge/ui/webui/templates/ajax/static/js/deluge-details.js @@ -48,6 +48,9 @@ Deluge.Widgets.Details = new Class({ clear: function() { this.pages.each(function(page) { + page.element.getChildren().each(function(el) { + el.set('opacity', 0.5); + }); if (page.clear) page.clear(); }); }, @@ -63,6 +66,9 @@ Deluge.Widgets.Details = new Class({ onSuccess: function(torrent) { torrent.id = torrentId; if (page.update) page.update(torrent); + page.element.getChildren().each(function(el) { + el.set('opacity', 1); + }); }.bindWithEvent(this) }); },