~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-transfer.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 Transfer 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/transfer-effect/
 
10
 *
 
11
 * Depends:
 
12
 *      jquery.ui.effect.js
 
13
 */
 
14
(function( $, undefined ) {
 
15
 
 
16
$.effects.effect.transfer = function( o, done ) {
 
17
        var elem = $( this ),
 
18
                target = $( o.to ),
 
19
                targetFixed = target.css( "position" ) === "fixed",
 
20
                body = $("body"),
 
21
                fixTop = targetFixed ? body.scrollTop() : 0,
 
22
                fixLeft = targetFixed ? body.scrollLeft() : 0,
 
23
                endPosition = target.offset(),
 
24
                animation = {
 
25
                        top: endPosition.top - fixTop ,
 
26
                        left: endPosition.left - fixLeft ,
 
27
                        height: target.innerHeight(),
 
28
                        width: target.innerWidth()
 
29
                },
 
30
                startPosition = elem.offset(),
 
31
                transfer = $( "<div class='ui-effects-transfer'></div>" )
 
32
                        .appendTo( document.body )
 
33
                        .addClass( o.className )
 
34
                        .css({
 
35
                                top: startPosition.top - fixTop ,
 
36
                                left: startPosition.left - fixLeft ,
 
37
                                height: elem.innerHeight(),
 
38
                                width: elem.innerWidth(),
 
39
                                position: targetFixed ? "fixed" : "absolute"
 
40
                        })
 
41
                        .animate( animation, o.duration, o.easing, function() {
 
42
                                transfer.remove();
 
43
                                done();
 
44
                        });
 
45
};
 
46
 
 
47
})(jQuery);