mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-12-21 08:09:35 +08:00
Merge pull request #594 from ccerrillo/master
changes in mootools breaks the context menu
This commit is contained in:
commit
b8598bfc14
@ -27,7 +27,17 @@ var ContextMenu = new Class({
|
||||
this.targets = $$(this.options.targets);
|
||||
|
||||
//fx
|
||||
this.fx = new Fx.Tween(this.menu, { property: 'opacity', duration:this.options.fadeSpeed });
|
||||
this.fx = new Fx.Tween(this.menu, {
|
||||
property: 'opacity',
|
||||
duration:this.options.fadeSpeed,
|
||||
onComplete: function() {
|
||||
if(this.getStyle('opacity')){
|
||||
this.setStyle('visibility','visible');
|
||||
}else{
|
||||
this.setStyle('visibility','hidden');
|
||||
}
|
||||
}.bind(this.menu)
|
||||
});
|
||||
|
||||
//hide and begin the listener
|
||||
this.hide().startListener();
|
||||
@ -158,4 +168,4 @@ var ContextMenu = new Class({
|
||||
return this;
|
||||
}
|
||||
|
||||
});
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user