add transparency to the tab to simulate greying out when a torrent isn't
selected
This commit is contained in:
parent
a0eafb1518
commit
ccce1938ac
|
@ -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)
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue