mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-21 03:54:50 +00:00
add transparency to the tab to simulate greying out when a torrent isn't
selected
This commit is contained in:
parent
a0eafb1518
commit
ccce1938ac
1 changed files with 6 additions and 0 deletions
|
@ -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)
|
||||
});
|
||||
},
|
||||
|
|
Loading…
Add table
Reference in a new issue