0
0
Fork 0
mirror of https://github.com/salesagility/SuiteCRM.git synced 2025-02-20 20:38:45 +00:00
salesagility_SuiteCRM/include/ytree/TreeView/anim/TVFadeOut.js
2013-09-23 20:30:44 +01:00

2 lines
No EOL
510 B
JavaScript
Executable file

/* Copyright (c) 2006 Yahoo! Inc. All rights reserved. */
YAHOO.widget.TVFadeOut=function(el,callback){this.el=el;this.callback=callback;this.logger=new ygLogger("TVFadeOut");};YAHOO.widget.TVFadeOut.prototype={animate:function(){var tvanim=this;var dur=0.4;var a=new YAHOO.util.Anim(this.el,{opacity:{from:1,to:0.1,unit:""}},dur);a.onComplete.subscribe(function(){tvanim.onComplete();});a.animate();},onComplete:function(){var s=this.el.style;s.display="none";s.filter="alpha(opacity=100)";this.callback();}};