mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-07 03:11:01 +01:00
7ea33988e9
Some regressions happened alongside the release of jQuery UI 1.13.0, this brings the fixes from 1.13.1 downstream to WordPress, notably relating to Widget, Autocomplete, Sortable, and Tooltip modules. See the changelog between version 1.13.0 and 1.13.1 at https://github.com/jquery/jquery-ui/compare/1.13.0...1.13.1 Props blogaid, linux4me2, mgol. Fixes #54902. Built from https://develop.svn.wordpress.org/trunk@52648 git-svn-id: http://core.svn.wordpress.org/trunk@52237 1a063a9b-81f0-0310-95a4-ce76da25c4cd
9 lines
1004 B
JavaScript
9 lines
1004 B
JavaScript
/*!
|
|
* jQuery UI Effects Fold 1.13.1
|
|
* http://jqueryui.com
|
|
*
|
|
* Copyright jQuery Foundation and other contributors
|
|
* Released under the MIT license.
|
|
* http://jquery.org/license
|
|
*/
|
|
!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./effect"],e):e(jQuery)}(function(m){"use strict";return m.effects.define("fold","hide",function(i,e){var t=m(this),c=i.mode,n="show"===c,f="hide"===c,s=i.size||15,o=/([0-9]+)%/.exec(s),a=!!i.horizFirst?["right","bottom"]:["bottom","right"],u=i.duration/2,l=m.effects.createPlaceholder(t),r=t.cssClip(),p={clip:m.extend({},r)},d={clip:m.extend({},r)},h=[r[a[0]],r[a[1]]],c=t.queue().length;o&&(s=parseInt(o[1],10)/100*h[f?0:1]),p.clip[a[0]]=s,d.clip[a[0]]=s,d.clip[a[1]]=0,n&&(t.cssClip(d.clip),l&&l.css(m.effects.clipToBox(d)),d.clip=r),t.queue(function(e){l&&l.animate(m.effects.clipToBox(p),u,i.easing).animate(m.effects.clipToBox(d),u,i.easing),e()}).animate(p,u,i.easing).animate(d,u,i.easing).queue(e),m.effects.unshift(t,c,4)})}); |