summaryrefslogtreecommitdiffstatshomepage
path: root/wp-includes/js/jquery/ui/jquery.ui.effect-explode.min.js
diff options
context:
space:
mode:
authorAndrew Nacin <nacin@git.wordpress.org>2012-08-30 01:49:47 +0000
committerAndrew Nacin <nacin@git.wordpress.org>2012-08-30 01:49:47 +0000
commit7710b20d7272487ce86362294a8db64b904fe4c6 (patch)
tree9643dcf916b1fbb0759f48d05a89b94be42a3091 /wp-includes/js/jquery/ui/jquery.ui.effect-explode.min.js
parentff1dd048f499153df2ce42dda429c8bdff575bea (diff)
downloadwordpress-7710b20d7272487ce86362294a8db64b904fe4c6.tar.gz
wordpress-7710b20d7272487ce86362294a8db64b904fe4c6.zip
jQuery UI 1.9 RC.
Adds Tooltip, Menu, and Spinner. Autocomplete depends on Menu. Renames Effects files. 1.9 final is expected next week. see #21736. git-svn-id: https://develop.svn.wordpress.org/trunk@21657 602fd350-edb4-49c9-b593-d223f7449a82
Diffstat (limited to 'wp-includes/js/jquery/ui/jquery.ui.effect-explode.min.js')
-rw-r--r--wp-includes/js/jquery/ui/jquery.ui.effect-explode.min.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/wp-includes/js/jquery/ui/jquery.ui.effect-explode.min.js b/wp-includes/js/jquery/ui/jquery.ui.effect-explode.min.js
new file mode 100644
index 0000000000..f32981cb8a
--- /dev/null
+++ b/wp-includes/js/jquery/ui/jquery.ui.effect-explode.min.js
@@ -0,0 +1,5 @@
+/*! jQuery UI - v1.9.0pre - 2012-08-29
+* http://jqueryui.com
+* Includes: jquery.ui.effect-explode.js
+* Copyright 2012 jQuery Foundation and other contributors; Licensed MIT */
+(function(e,t){e.effects.effect.explode=function(t,n){function y(){c.push(this),c.length===r*i&&b()}function b(){s.css({visibility:"visible"}),e(c).remove(),u||s.hide(),n()}var r=t.pieces?Math.round(Math.sqrt(t.pieces)):3,i=r,s=e(this),o=e.effects.setMode(s,t.mode||"hide"),u=o==="show",a=s.show().css("visibility","hidden").offset(),f=Math.ceil(s.outerWidth()/i),l=Math.ceil(s.outerHeight()/r),c=[],h,p,d,v,m,g;for(h=0;h<r;h++){v=a.top+h*l,g=h-(r-1)/2;for(p=0;p<i;p++)d=a.left+p*f,m=p-(i-1)/2,s.clone().appendTo("body").wrap("<div></div>").css({position:"absolute",visibility:"visible",left:-p*f,top:-h*l}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:f,height:l,left:d+(u?m*f:0),top:v+(u?g*l:0),opacity:u?0:1}).animate({left:d+(u?0:m*f),top:v+(u?0:g*l),opacity:u?1:0},t.duration||500,t.easing,y)}}})(jQuery); \ No newline at end of file