Files
Piwigo/themes/default/js/ui/jquery.effects.fade.js
T
patdenice 2a5be28bc5 feature:2487
Update jQuery to 1.6.4 and jQuery UI to 1.8.16 

git-svn-id: http://piwigo.org/svn/trunk@12525 68402e56-0260-453c-a942-63ccdbb3a9ee
2011-10-28 13:25:54 +00:00

33 lines
691 B
JavaScript

/*
* jQuery UI Effects Fade 1.8.16
*
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* http://docs.jquery.com/UI/Effects/Fade
*
* Depends:
* jquery.effects.core.js
*/
(function( $, undefined ) {
$.effects.fade = function(o) {
return this.queue(function() {
var elem = $(this),
mode = $.effects.setMode(elem, o.options.mode || 'hide');
elem.animate({ opacity: mode }, {
queue: false,
duration: o.duration,
easing: o.options.easing,
complete: function() {
(o.callback && o.callback.apply(this, arguments));
elem.dequeue();
}
});
});
};
})(jQuery);