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

« back to all changes in this revision

Viewing changes to debian/missing-sources/jquery-ui-1.8.20/jquery.effects.shake.js

  • Committer: Package Import Robot
  • Author(s): Raphaël Hertzog, Raphaël Hertzog, Martin Bagge / brother
  • Date: 2012-06-16 01:19:20 UTC
  • mfrom: (1.2.22)
  • Revision ID: package-import@ubuntu.com-20120616011920-ivqcktmjehq4gpal
Tags: 3.4+dfsg-1
* New upstream release. Closes: #677534

[ Raphaël Hertzog ]
* [a1c0409] Refresh and update all patches to correctly apply on version
  3.4.
* [3804496] Update debian/missing-sources/ to match the current versions of
  embedded javascript and flash files.
* [185b051] Drop the old "default" theme (and its French translation)
* [966ce6c] Grab latest translations
* [1983326] Update Standards-Version to 3.9.3 (no change).
* [29c48b6] Increase debhelper compat level to 9.
* [73e16d0] Replace debian/dh_linktree by the packaged version.
* [359b660] Update debian/wordpress.linktrees to match latest developments.
* [645b650] Let setup-mysql lowercase the FQDN since the configuration
  scheme expects this. Thanks to Chris Butler <chrisb@debian.org> for the
  report (Closes: #658395)
* [5433e90] Fix setup-mysql to avoid creating /srv/www with restricted
  permissions (Closes: #616400)
* [dd2ef1d] Move back wp-config.php to /usr/share/wordpress/ since it's only
  a dispatcher to the real configuration file (Closes: #592502)
* [b602372] Improve wp-config.php so that WordPress works behind an https
  reverse-proxy.
* [ba0b729] Entirely update and rewrite README.debian. (Closes: #575985,
  #639980)
* [683a908] Update wp-config.php to not redefine constants which have
  already been set.  Thanks to Richard van den Berg <richard@vdberg.org> for
  the report. (Closes: #613283)
* [315eb68] Let wordpress-l10n depend on the same version than wordpress.
  (Closes: #623557)
* [a6d0b9f] Default configuration now sets WP_CONTENT_DIR to
  /var/lib/wordpress/wp-content. And the package provides this new directory
  appropriately setup with write rights to www-data on blogs.dir and
  uploads. themes and plugins are root-owned directories with symlinks
  pointing back to the default themes and plugins. (Closes: #675469)
* [4db98c6] Update setup-mysql to use WP_CONTENT_DIR (and no longer use
  $upload_dir). (Closes: #658508)
* [a1970da] Extend debian/wordpress.linktrees to cover swfobject.js.
* [8d46dab] Use dpkg-maintscript-helper to drop obsolete
  /etc/wordpress/wp-config.php

[ Martin Bagge / brother ]
* [56d0a34] Improve the setup script to be able to use a remote MySQL
  server.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*!
 
2
 * jQuery UI Effects Shake @VERSION
 
3
 *
 
4
 * Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
 
5
 * Dual licensed under the MIT or GPL Version 2 licenses.
 
6
 * http://jquery.org/license
 
7
 *
 
8
 * http://docs.jquery.com/UI/Effects/Shake
 
9
 *
 
10
 * Depends:
 
11
 *      jquery.effects.core.js
 
12
 */
 
13
(function( $, undefined ) {
 
14
 
 
15
$.effects.shake = function(o) {
 
16
 
 
17
        return this.queue(function() {
 
18
 
 
19
                // Create element
 
20
                var el = $(this), props = ['position','top','bottom','left','right'];
 
21
 
 
22
                // Set options
 
23
                var mode = $.effects.setMode(el, o.options.mode || 'effect'); // Set Mode
 
24
                var direction = o.options.direction || 'left'; // Default direction
 
25
                var distance = o.options.distance || 20; // Default distance
 
26
                var times = o.options.times || 3; // Default # of times
 
27
                var speed = o.duration || o.options.duration || 140; // Default speed per shake
 
28
 
 
29
                // Adjust
 
30
                $.effects.save(el, props); el.show(); // Save & Show
 
31
                $.effects.createWrapper(el); // Create Wrapper
 
32
                var ref = (direction == 'up' || direction == 'down') ? 'top' : 'left';
 
33
                var motion = (direction == 'up' || direction == 'left') ? 'pos' : 'neg';
 
34
 
 
35
                // Animation
 
36
                var animation = {}, animation1 = {}, animation2 = {};
 
37
                animation[ref] = (motion == 'pos' ? '-=' : '+=')  + distance;
 
38
                animation1[ref] = (motion == 'pos' ? '+=' : '-=')  + distance * 2;
 
39
                animation2[ref] = (motion == 'pos' ? '-=' : '+=')  + distance * 2;
 
40
 
 
41
                // Animate
 
42
                el.animate(animation, speed, o.options.easing);
 
43
                for (var i = 1; i < times; i++) { // Shakes
 
44
                        el.animate(animation1, speed, o.options.easing).animate(animation2, speed, o.options.easing);
 
45
                };
 
46
                el.animate(animation1, speed, o.options.easing).
 
47
                animate(animation, speed / 2, o.options.easing, function(){ // Last shake
 
48
                        $.effects.restore(el, props); $.effects.removeWrapper(el); // Restore
 
49
                        if(o.callback) o.callback.apply(this, arguments); // Callback
 
50
                });
 
51
                el.queue('fx', function() { el.dequeue(); });
 
52
                el.dequeue();
 
53
        });
 
54
 
 
55
};
 
56
 
 
57
})(jQuery);