~ubuntu-branches/debian/sid/wordpress/sid

« back to all changes in this revision

Viewing changes to debian/missing-sources/jquery-ui-1.10.3/jquery.ui.effect-drop.js

  • Committer: Package Import Robot
  • Author(s): Raphaël Hertzog
  • Date: 2013-09-04 23:18:58 UTC
  • mfrom: (1.2.28)
  • Revision ID: package-import@ubuntu.com-20130904231858-nljmn1buzswh63jk
Tags: 3.6+dfsg-1
* New upstream release.
* Improve wp-settings to verify that $_SERVER['HTTP_X_FORWARDED_PROTO']
  exists before accessing it (avoids a PHP notice).
  Thanks to Paul Dreik <slask@pauldreik.se> for the report and the patch.
* Document in README.Debian the need to login to /wp-admin/ to complete
  an upgrade.
* Drop useless debian/README.source
* Drop 008CVE2008-2392.patch since upstream now disables unfiltered
  uploads by default. See http://core.trac.wordpress.org/ticket/10692
* Drop 009CVE2008-6767.patch since the backto parameter is validated
  against a whitelist, and externally triggered upgrades are not a
  security problem as long as they work.
* Update debian/missing-sources with latest versions.
* Update upstream l10n.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*!
 
2
 * jQuery UI Effects Drop 1.10.3
 
3
 * http://jqueryui.com
 
4
 *
 
5
 * Copyright 2013 jQuery Foundation and other contributors
 
6
 * Released under the MIT license.
 
7
 * http://jquery.org/license
 
8
 *
 
9
 * http://api.jqueryui.com/drop-effect/
 
10
 *
 
11
 * Depends:
 
12
 *      jquery.ui.effect.js
 
13
 */
 
14
(function( $, undefined ) {
 
15
 
 
16
$.effects.effect.drop = function( o, done ) {
 
17
 
 
18
        var el = $( this ),
 
19
                props = [ "position", "top", "bottom", "left", "right", "opacity", "height", "width" ],
 
20
                mode = $.effects.setMode( el, o.mode || "hide" ),
 
21
                show = mode === "show",
 
22
                direction = o.direction || "left",
 
23
                ref = ( direction === "up" || direction === "down" ) ? "top" : "left",
 
24
                motion = ( direction === "up" || direction === "left" ) ? "pos" : "neg",
 
25
                animation = {
 
26
                        opacity: show ? 1 : 0
 
27
                },
 
28
                distance;
 
29
 
 
30
        // Adjust
 
31
        $.effects.save( el, props );
 
32
        el.show();
 
33
        $.effects.createWrapper( el );
 
34
 
 
35
        distance = o.distance || el[ ref === "top" ? "outerHeight": "outerWidth" ]( true ) / 2;
 
36
 
 
37
        if ( show ) {
 
38
                el
 
39
                        .css( "opacity", 0 )
 
40
                        .css( ref, motion === "pos" ? -distance : distance );
 
41
        }
 
42
 
 
43
        // Animation
 
44
        animation[ ref ] = ( show ?
 
45
                ( motion === "pos" ? "+=" : "-=" ) :
 
46
                ( motion === "pos" ? "-=" : "+=" ) ) +
 
47
                distance;
 
48
 
 
49
        // Animate
 
50
        el.animate( animation, {
 
51
                queue: false,
 
52
                duration: o.duration,
 
53
                easing: o.easing,
 
54
                complete: function() {
 
55
                        if ( mode === "hide" ) {
 
56
                                el.hide();
 
57
                        }
 
58
                        $.effects.restore( el, props );
 
59
                        $.effects.removeWrapper( el );
 
60
                        done();
 
61
                }
 
62
        });
 
63
};
 
64
 
 
65
})(jQuery);