summaryrefslogtreecommitdiff
path: root/misc/ui/jquery.effects.clip.min.js
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2010-03-21 03:47:32 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2010-03-21 03:47:32 +0000
commitc4f529917391bc0ea2aabcca99b2bf64c41470aa (patch)
tree2d778a0d4c79b7a06a863db4eeb3c892cb83133e /misc/ui/jquery.effects.clip.min.js
parentb0be4e7234a77ea7649f3188751adcccb1d83399 (diff)
downloadbrdo-c4f529917391bc0ea2aabcca99b2bf64c41470aa.tar.gz
brdo-c4f529917391bc0ea2aabcca99b2bf64c41470aa.tar.bz2
#679036 by marvil07, mfer, Rob Loach, et al: Upgrade to jQuery UI 1.8.
Diffstat (limited to 'misc/ui/jquery.effects.clip.min.js')
-rw-r--r--misc/ui/jquery.effects.clip.min.js15
1 files changed, 15 insertions, 0 deletions
diff --git a/misc/ui/jquery.effects.clip.min.js b/misc/ui/jquery.effects.clip.min.js
new file mode 100644
index 000000000..d76aaef47
--- /dev/null
+++ b/misc/ui/jquery.effects.clip.min.js
@@ -0,0 +1,15 @@
+// $Id$
+
+/*
+ * jQuery UI Effects Clip 1.8
+ *
+ * Copyright (c) 2010 AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ *
+ * http://docs.jquery.com/UI/Effects/Clip
+ *
+ * Depends:
+ * jquery.effects.core.js
+ */
+(function(a){a.effects.clip=function(b){return this.queue(function(){var f=a(this),j=["position","top","left","height","width"];var i=a.effects.setMode(f,b.options.mode||"hide");var k=b.options.direction||"vertical";a.effects.save(f,j);f.show();var c=a.effects.createWrapper(f).css({overflow:"hidden"});var e=f[0].tagName=="IMG"?c:f;var g={size:(k=="vertical")?"height":"width",position:(k=="vertical")?"top":"left"};var d=(k=="vertical")?e.height():e.width();if(i=="show"){e.css(g.size,0);e.css(g.position,d/2)}var h={};h[g.size]=i=="show"?d:0;h[g.position]=i=="show"?0:d/2;e.animate(h,{queue:false,duration:b.duration,easing:b.options.easing,complete:function(){if(i=="hide"){f.hide()}a.effects.restore(f,j);a.effects.removeWrapper(f);if(b.callback){b.callback.apply(f[0],arguments)}f.dequeue()}})})}})(jQuery); \ No newline at end of file