Browse Source

Merge pull request #594 from ccerrillo/master

changes in mootools breaks the context menu
adaptive-webui-19844
Christophe Dumez 12 years ago
parent
commit
b8598bfc14
  1. 12
      src/webui/scripts/contextmenu.js

12
src/webui/scripts/contextmenu.js

@ -27,7 +27,17 @@ var ContextMenu = new Class({
this.targets = $$(this.options.targets); this.targets = $$(this.options.targets);
//fx //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 //hide and begin the listener
this.hide().startListener(); this.hide().startListener();

Loading…
Cancel
Save