mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-04 09:49:37 +01:00
939b818bf9
Adds Tooltip, Menu, and Spinner. Autocomplete depends on Menu. Renames Effects files. 1.9 final is expected next week. see #21736. git-svn-id: http://core.svn.wordpress.org/trunk@21657 1a063a9b-81f0-0310-95a4-ce76da25c4cd
5 lines
941 B
JavaScript
5 lines
941 B
JavaScript
/*! jQuery UI - v1.9.0pre - 2012-08-29
|
|
* http://jqueryui.com
|
|
* Includes: jquery.ui.effect-shake.js
|
|
* Copyright 2012 jQuery Foundation and other contributors; Licensed MIT */
|
|
(function(e,t){e.effects.effect.shake=function(t,n){var r=e(this),i=["position","top","bottom","left","right","height","width"],s=e.effects.setMode(r,t.mode||"effect"),o=t.direction||"left",u=t.distance||20,a=t.times||3,f=a*2+1,l=t.duration,c=o==="up"||o==="down"?"top":"left",h=o==="up"||o==="left",p={},d={},v={},m,g=r.queue(),y=g.length;e.effects.save(r,i),r.show(),e.effects.createWrapper(r),p[c]=(h?"-=":"+=")+u,d[c]=(h?"+=":"-=")+u*2,v[c]=(h?"-=":"+=")+u*2,r.animate(p,l,t.easing);for(m=1;m<a;m++)r.animate(d,l,t.easing).animate(v,l,t.easing);r.animate(d,l,t.easing).animate(p,l/2,t.easing).queue(function(){s==="hide"&&r.hide(),e.effects.restore(r,i),e.effects.removeWrapper(r),n()}),y>1&&g.splice.apply(g,[1,0].concat(g.splice(y,f+1))),r.dequeue()}})(jQuery); |