diff options
author | 2013-02-26 23:44:34 +0100 | |
---|---|---|
committer | 2013-02-26 23:44:34 +0100 | |
commit | 52ad2e19bf824cbaa6e6f96d6c8e71561e865819 (patch) | |
tree | 2f2bf5dde7ef9bf5c987513be996f06c8421b021 /module/web/static/js/libs/jqueryui/effects/slide.js | |
parent | improved file view, added default plugin icon (diff) | |
download | pyload-52ad2e19bf824cbaa6e6f96d6c8e71561e865819.tar.xz |
updated js libraries, cleaned jquery-ui
Diffstat (limited to 'module/web/static/js/libs/jqueryui/effects/slide.js')
-rw-r--r-- | module/web/static/js/libs/jqueryui/effects/slide.js | 53 |
1 files changed, 0 insertions, 53 deletions
diff --git a/module/web/static/js/libs/jqueryui/effects/slide.js b/module/web/static/js/libs/jqueryui/effects/slide.js deleted file mode 100644 index d39877fa9..000000000 --- a/module/web/static/js/libs/jqueryui/effects/slide.js +++ /dev/null @@ -1,53 +0,0 @@ -define(['jquery','./effects/core'], function (jQuery) { -/*! - * jQuery UI Effects Slide 1.8.23 - * - * Copyright 2012, 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/Slide - * - * Depends: - * jquery.effects.core.js - */ -(function( $, undefined ) { - -$.effects.slide = function(o) { - - return this.queue(function() { - - // Create element - var el = $(this), props = ['position','top','bottom','left','right']; - - // Set options - var mode = $.effects.setMode(el, o.options.mode || 'show'); // Set Mode - var direction = o.options.direction || 'left'; // Default Direction - - // Adjust - $.effects.save(el, props); el.show(); // Save & Show - $.effects.createWrapper(el).css({overflow:'hidden'}); // Create Wrapper - var ref = (direction == 'up' || direction == 'down') ? 'top' : 'left'; - var motion = (direction == 'up' || direction == 'left') ? 'pos' : 'neg'; - var distance = o.options.distance || (ref == 'top' ? el.outerHeight( true ) : el.outerWidth( true )); - if (mode == 'show') el.css(ref, motion == 'pos' ? (isNaN(distance) ? "-" + distance : -distance) : distance); // Shift - - // Animation - var animation = {}; - animation[ref] = (mode == 'show' ? (motion == 'pos' ? '+=' : '-=') : (motion == 'pos' ? '-=' : '+=')) + distance; - - // Animate - el.animate(animation, { queue: false, duration: o.duration, easing: o.options.easing, complete: function() { - if(mode == 'hide') el.hide(); // Hide - $.effects.restore(el, props); $.effects.removeWrapper(el); // Restore - if(o.callback) o.callback.apply(this, arguments); // Callback - el.dequeue(); - }}); - - }); - -}; - -})(jQuery); - -});
\ No newline at end of file |