add transparency to the tab to simulate greying out when a torrent isn't

selected
This commit is contained in:
Damien Churchill 2008-10-14 01:10:17 +00:00
parent a0eafb1518
commit ccce1938ac
1 changed files with 6 additions and 0 deletions

View File

@ -48,6 +48,9 @@ Deluge.Widgets.Details = new Class({
clear: function() { clear: function() {
this.pages.each(function(page) { this.pages.each(function(page) {
page.element.getChildren().each(function(el) {
el.set('opacity', 0.5);
});
if (page.clear) page.clear(); if (page.clear) page.clear();
}); });
}, },
@ -63,6 +66,9 @@ Deluge.Widgets.Details = new Class({
onSuccess: function(torrent) { onSuccess: function(torrent) {
torrent.id = torrentId; torrent.id = torrentId;
if (page.update) page.update(torrent); if (page.update) page.update(torrent);
page.element.getChildren().each(function(el) {
el.set('opacity', 1);
});
}.bindWithEvent(this) }.bindWithEvent(this)
}); });
}, },