<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" /><style type="text/css"><!--
#msg dl { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fc0 solid; padding: 6px; }
#msg ul, pre { overflow: auto; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<title>[13201] trunk/wp-includes: jQuery UI 1.7.2.</title>
</head>
<body>

<div id="msg">
<dl>
<dt>Revision</dt> <dd><a href="http://trac.wordpress.org/changeset/13201">13201</a></dd>
<dt>Author</dt> <dd>ryan</dd>
<dt>Date</dt> <dd>2010-02-18 20:49:16 +0000 (Thu, 18 Feb 2010)</dd>
</dl>

<h3>Log Message</h3>
<pre>jQuery UI 1.7.2. fixes <a href="http://trac.wordpress.org/ticket/11595">#11595</a></pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkwpincludesjsjqueryuicorejs">trunk/wp-includes/js/jquery/ui.core.js</a></li>
<li><a href="#trunkwpincludesjsjqueryuidialogjs">trunk/wp-includes/js/jquery/ui.dialog.js</a></li>
<li><a href="#trunkwpincludesjsjqueryuidraggablejs">trunk/wp-includes/js/jquery/ui.draggable.js</a></li>
<li><a href="#trunkwpincludesjsjqueryuidroppablejs">trunk/wp-includes/js/jquery/ui.droppable.js</a></li>
<li><a href="#trunkwpincludesjsjqueryuiresizablejs">trunk/wp-includes/js/jquery/ui.resizable.js</a></li>
<li><a href="#trunkwpincludesjsjqueryuisortablejs">trunk/wp-includes/js/jquery/ui.sortable.js</a></li>
<li><a href="#trunkwpincludesjsjqueryuitabsjs">trunk/wp-includes/js/jquery/ui.tabs.js</a></li>
<li><a href="#trunkwpincludesscriptloaderphp">trunk/wp-includes/script-loader.php</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkwpincludesjsjqueryuicorejs"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/js/jquery/ui.core.js (13200 => 13201)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/js/jquery/ui.core.js        2010-02-18 20:08:35 UTC (rev 13200)
+++ trunk/wp-includes/js/jquery/ui.core.js        2010-02-18 20:49:16 UTC (rev 13201)
</span><span class="lines">@@ -1,5 +1,5 @@
</span><span class="cx"> /*
</span><del>- * jQuery UI 1.7.1
</del><ins>+ * jQuery UI 1.7.2
</ins><span class="cx">  *
</span><span class="cx">  * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about)
</span><span class="cx">  * Dual licensed under the MIT (MIT-LICENSE.txt)
</span><span class="lines">@@ -7,4 +7,4 @@
</span><span class="cx">  *
</span><span class="cx">  * http://docs.jquery.com/UI
</span><span class="cx">  */
</span><del>-jQuery.ui||(function(c){var i=c.fn.remove,d=c.browser.mozilla&amp;&amp;(parseFloat(c.browser.version)&lt;1.9);c.ui={version:&quot;1.7.1&quot;,plugin:{add:function(k,l,n){var m=c.ui[k].prototype;for(var j in n){m.plugins[j]=m.plugins[j]||[];m.plugins[j].push([l,n[j]])}},call:function(j,l,k){var n=j.plugins[l];if(!n||!j.element[0].parentNode){return}for(var m=0;m&lt;n.length;m++){if(j.options[n[m][0]]){n[m][1].apply(j.element,k)}}}},contains:function(k,j){return document.compareDocumentPosition?k.compareDocumentPosition(j)&amp;16:k!==j&amp;&amp;k.contains(j)},hasScroll:function(m,k){if(c(m).css(&quot;overflow&quot;)==&quot;hidden&quot;){return false}var j=(k&amp;&amp;k==&quot;left&quot;)?&quot;scrollLeft&quot;:&quot;scrollTop&quot;,l=false;if(m[j]&gt;0){return true}m[j]=1;l=(m[j]&gt;0);m[j]=0;return l},isOverAxis:function(k,j,l){return(k&gt;j)&amp;&amp;(k&lt;(j+l))},isOver:function(o,k,n,m,j,l){return c.ui.isOverAxis(o,n,j)&amp;&amp;c.ui.isOverAxis(k,m,l)},keyCode:{BACKSPACE:8,CAPS_LOCK:20,COMMA:188,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38}};if(d){var f=c.attr,e=c.fn.removeAttr,h=&quot;http://www.w3.org/2005/07/aaa&quot;,a=/^aria-/,b=/^wairole:/;c.attr=function(k,j,l){var m=l!==undefined;return(j==&quot;role&quot;?(m?f.call(this,k,j,&quot;wairole:&quot;+l):(f.apply(this,arguments)||&quot;&quot;).replace(b,&quot;&quot;)):(a.test(j)?(m?k.setAttributeNS(h,j.replace(a,&quot;aaa:&quot;),l):f.call(this,k,j.replace(a,&quot;aaa:&quot;))):f.apply(this,arguments)))};c.fn.removeAttr=function(j){return(a.test(j)?this.each(function(){this.removeAttributeNS(h,j.replace(a,&quot;&quot;))}):e.call(this,j))}}c.fn.extend({remove:function(){c(&quot;*&quot;,this).add(this).each(function(){c(this).triggerHandler(&quot;remove&quot;)});return i.apply(this,arguments)},enableSelection:function(){return this.attr(&quot;unselectable&quot;,&quot;off&quot;).css(&quot;MozUserSelect&quot;,&quot;&quot;).unbind(&quot;selectstart.ui&quot;)},disableSelection:function(){return this.attr(&quot;unselectable&quot;,&quot;on&quot;).css(&quot;MozUserSelect&quot;,&quot;none&quot;).bind(&quot;selectstart.ui&quot;,function(){return false})},scrollParent:function(){var j;if((c.browser.msie&amp;&amp;(/(static|relative)/).test(this.css(&quot;position&quot;)))||(/absolute/).test(this.css(&quot;position&quot;))){j=this.parents().filter(function(){return(/(relative|absolute|fixed)/).test(c.curCSS(this,&quot;position&quot;,1))&amp;&amp;(/(auto|scroll)/).test(c.curCSS(this,&quot;overflow&quot;,1)+c.curCSS(this,&quot;overflow-y&quot;,1)+c.curCSS(this,&quot;overflow-x&quot;,1))}).eq(0)}else{j=this.parents().filter(function(){return(/(auto|scroll)/).test(c.curCSS(this,&quot;overflow&quot;,1)+c.curCSS(this,&quot;overflow-y&quot;,1)+c.curCSS(this,&quot;overflow-x&quot;,1))}).eq(0)}return(/fixed/).test(this.css(&quot;position&quot;))||!j.length?c(document):j}});c.extend(c.expr[&quot;:&quot;],{data:function(l,k,j){return !!c.data(l,j[3])},focusable:function(k){var l=k.nodeName.toLowerCase(),j=c.attr(k,&quot;tabindex&quot;);return(/input|select|textarea|button|object/.test(l)?!k.disabled:&quot;a&quot;==l||&quot;area&quot;==l?k.href||!isNaN(j):!isNaN(j))&amp;&amp;!c(k)[&quot;area&quot;==l?&quot;parents&quot;:&quot;closest&quot;](&quot;:hidden&quot;).length},tabbable:function(k){var j=c.attr(k,&quot;tabindex&quot;);return(isNaN(j)||j&gt;=0)&amp;&amp;c(k).is(&quot;:focusable&quot;)}});function g(m,n,o,l){function k(q){var p=c[m][n][q]||[];return(typeof p==&quot;string&quot;?p.split(/,?\s+/):p)}var j=k(&quot;getter&quot;);if(l.length==1&amp;&amp;typeof l[0]==&quot;string&quot;){j=j.concat(k(&quot;getterSetter&quot;))}return(c.inArray(o,j)!=-1)}c.widget=function(k,j){var l=k.split(&quot;.&quot;)[0];k=k.split(&quot;.&quot;)[1];c.fn[k]=function(p){var n=(typeof p==&quot;string&quot;),o=Array.prototype.slice.call(arguments,1);if(n&amp;&amp;p.substring(0,1)==&quot;_&quot;){return this}if(n&amp;&amp;g(l,k,p,o)){var m=c.data(this[0],k);return(m?m[p].apply(m,o):undefined)}return this.each(function(){var q=c.data(this,k);(!q&amp;&amp;!n&amp;&amp;c.data(this,k,new c[l][k](this,p))._init());(q&amp;&amp;n&amp;&amp;c.isFunction(q[p])&amp;&amp;q[p].apply(q,o))})};c[l]=c[l]||{};c[l][k]=function(o,n){var m=this;this.namespace=l;this.widgetName=k;this.widgetEventPrefix=c[l][k].eventPrefix||k;this.widgetBaseClass=l+&quot;-&quot;+k;this.options=c.extend({},c.widget.defaults,c[l][k].defaults,c.metadata&amp;&amp;c.metadata.get(o)[k],n);this.element=c(o).bind(&quot;setData.&quot;+k,function(q,p,r){if(q.target==o){return m._setData(p,r)}}).bind(&quot;getData.&quot;+k,function(q,p){if(q.target==o){return m._getData(p)}}).bind(&quot;remove&quot;,function(){return m.destroy()})};c[l][k].prototype=c.extend({},c.widget.prototype,j);c[l][k].getterSetter=&quot;option&quot;};c.widget.prototype={_init:function(){},destroy:function(){this.element.removeData(this.widgetName).removeClass(this.widgetBaseClass+&quot;-disabled &quot;+this.namespace+&quot;-state-disabled&quot;).removeAttr(&quot;aria-disabled&quot;)},option:function(l,m){var k=l,j=this;if(typeof l==&quot;string&quot;){if(m===undefined){return this._getData(l)}k={};k[l]=m}c.each(k,function(n,o){j._setData(n,o)})},_getData:function(j){return this.options[j]},_setData:function(j,k){this.options[j]=k;if(j==&quot;disabled&quot;){this.element[k?&quot;addClass&quot;:&quot;removeClass&quot;](this.widgetBaseClass+&quot;-disabled &quot;+this.namespace+&quot;-state-disabled&quot;).attr(&quot;aria-disabled&quot;,k)}},enable:function(){this._setData(&quot;disabled&quot;,false)},disable:function(){this._setData(&quot;disabled&quot;,true)},_trigger:function(l,m,n){var p=this.options[l],j=(l==this.widgetEventPrefix?l:this.widgetEventPrefix+l);m=c.Event(m);m.type=j;if(m.originalEvent){for(var k=c.event.props.length,o;k;){o=c.event.props[--k];m[o]=m.originalEvent[o]}}this.element.trigger(m,n);return !(c.isFunction(p)&amp;&amp;p.call(this.element[0],m,n)===false||m.isDefaultPrevented())}};c.widget.defaults={disabled:false};c.ui.mouse={_mouseInit:function(){var j=this;this.element.bind(&quot;mousedown.&quot;+this.widgetName,function(k){return j._mouseDown(k)}).bind(&quot;click.&quot;+this.widgetName,function(k){if(j._preventClickEvent){j._preventClickEvent=false;k.stopImmediatePropagation();return false}});if(c.browser.msie){this._mouseUnselectable=this.element.attr(&quot;unselectable&quot;);this.element.attr(&quot;unselectable&quot;,&quot;on&quot;)}this.started=false},_mouseDestroy:function(){this.element.unbind(&quot;.&quot;+this.widgetName);(c.browser.msie&amp;&amp;this.element.attr(&quot;unselectable&quot;,this._mouseUnselectable))},_mouseDown:function(l){l.originalEvent=l.originalEvent||{};if(l.originalEvent.mouseHandled){return}(this._mouseStarted&amp;&amp;this._mouseUp(l));this._mouseDownEvent=l;var k=this,m=(l.which==1),j=(typeof this.options.cancel==&quot;string&quot;?c(l.target).parents().add(l.target).filter(this.options.cancel).length:false);if(!m||j||!this._mouseCapture(l)){return true}this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet){this._mouseDelayTimer=setTimeout(function(){k.mouseDelayMet=true},this.options.delay)}if(this._mouseDistanceMet(l)&amp;&amp;this._mouseDelayMet(l)){this._mouseStarted=(this._mouseStart(l)!==false);if(!this._mouseStarted){l.preventDefault();return true}}this._mouseMoveDelegate=function(n){return k._mouseMove(n)};this._mouseUpDelegate=function(n){return k._mouseUp(n)};c(document).bind(&quot;mousemove.&quot;+this.widgetName,this._mouseMoveDelegate).bind(&quot;mouseup.&quot;+this.widgetName,this._mouseUpDelegate);(c.browser.safari||l.preventDefault());l.originalEvent.mouseHandled=true;return true},_mouseMove:function(j){if(c.browser.msie&amp;&amp;!j.button){return this._mouseUp(j)}if(this._mouseStarted){this._mouseDrag(j);return j.preventDefault()}if(this._mouseDistanceMet(j)&amp;&amp;this._mouseDelayMet(j)){this._mouseStarted=(this._mouseStart(this._mouseDownEvent,j)!==false);(this._mouseStarted?this._mouseDrag(j):this._mouseUp(j))}return !this._mouseStarted},_mouseUp:function(j){c(document).unbind(&quot;mousemove.&quot;+this.widgetName,this._mouseMoveDelegate).unbind(&quot;mouseup.&quot;+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=false;this._preventClickEvent=(j.target==this._mouseDownEvent.target);this._mouseStop(j)}return false},_mouseDistanceMet:function(j){return(Math.max(Math.abs(this._mouseDownEvent.pageX-j.pageX),Math.abs(this._mouseDownEvent.pageY-j.pageY))&gt;=this.options.distance)},_mouseDelayMet:function(j){return this.mouseDelayMet},_mouseStart:function(j){},_mouseDrag:function(j){},_mouseStop:function(j){},_mouseCapture:function(j){return true}};c.ui.mouse.defaults={cancel:null,distance:1,delay:0}})(jQuery);
</del><span class="cx">\ No newline at end of file
</span><ins>+jQuery.ui||(function(c){var i=c.fn.remove,d=c.browser.mozilla&amp;&amp;(parseFloat(c.browser.version)&lt;1.9);c.ui={version:&quot;1.7.2&quot;,plugin:{add:function(k,l,n){var m=c.ui[k].prototype;for(var j in n){m.plugins[j]=m.plugins[j]||[];m.plugins[j].push([l,n[j]])}},call:function(j,l,k){var n=j.plugins[l];if(!n||!j.element[0].parentNode){return}for(var m=0;m&lt;n.length;m++){if(j.options[n[m][0]]){n[m][1].apply(j.element,k)}}}},contains:function(k,j){return document.compareDocumentPosition?k.compareDocumentPosition(j)&amp;16:k!==j&amp;&amp;k.contains(j)},hasScroll:function(m,k){if(c(m).css(&quot;overflow&quot;)==&quot;hidden&quot;){return false}var j=(k&amp;&amp;k==&quot;left&quot;)?&quot;scrollLeft&quot;:&quot;scrollTop&quot;,l=false;if(m[j]&gt;0){return true}m[j]=1;l=(m[j]&gt;0);m[j]=0;return l},isOverAxis:function(k,j,l){return(k&gt;j)&amp;&amp;(k&lt;(j+l))},isOver:function(o,k,n,m,j,l){return c.ui.isOverAxis(o,n,j)&amp;&amp;c.ui.isOverAxis(k,m,l)},keyCode:{BACKSPACE:8,CAPS_LOCK:20,COMMA:188,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38}};if(d){var f=c.attr,e=c.fn.removeAttr,h=&quot;http://www.w3.org/2005/07/aaa&quot;,a=/^aria-/,b=/^wairole:/;c.attr=function(k,j,l){var m=l!==undefined;return(j==&quot;role&quot;?(m?f.call(this,k,j,&quot;wairole:&quot;+l):(f.apply(this,arguments)||&quot;&quot;).replace(b,&quot;&quot;)):(a.test(j)?(m?k.setAttributeNS(h,j.replace(a,&quot;aaa:&quot;),l):f.call(this,k,j.replace(a,&quot;aaa:&quot;))):f.apply(this,arguments)))};c.fn.removeAttr=function(j){return(a.test(j)?this.each(function(){this.removeAttributeNS(h,j.replace(a,&quot;&quot;))}):e.call(this,j))}}c.fn.extend({remove:function(){c(&quot;*&quot;,this).add(this).each(function(){c(this).triggerHandler(&quot;remove&quot;)});return i.apply(this,arguments)},enableSelection:function(){return this.attr(&quot;unselectable&quot;,&quot;off&quot;).css(&quot;MozUserSelect&quot;,&quot;&quot;).unbind(&quot;selectstart.ui&quot;)},disableSelection:function(){return this.attr(&quot;unselectable&quot;,&quot;on&quot;).css(&quot;MozUserSelect&quot;,&quot;none&quot;).bind(&quot;selectstart.ui&quot;,function(){return false})},scrollParent:function(){var j;if((c.browser.msie&amp;&amp;(/(static|relative)/).test(this.css(&quot;position&quot;)))||(/absolute/).test(this.css(&quot;position&quot;))){j=this.parents().filter(function(){return(/(relative|absolute|fixed)/).test(c.curCSS(this,&quot;position&quot;,1))&amp;&amp;(/(auto|scroll)/).test(c.curCSS(this,&quot;overflow&quot;,1)+c.curCSS(this,&quot;overflow-y&quot;,1)+c.curCSS(this,&quot;overflow-x&quot;,1))}).eq(0)}else{j=this.parents().filter(function(){return(/(auto|scroll)/).test(c.curCSS(this,&quot;overflow&quot;,1)+c.curCSS(this,&quot;overflow-y&quot;,1)+c.curCSS(this,&quot;overflow-x&quot;,1))}).eq(0)}return(/fixed/).test(this.css(&quot;position&quot;))||!j.length?c(document):j}});c.extend(c.expr[&quot;:&quot;],{data:function(l,k,j){return !!c.data(l,j[3])},focusable:function(k){var l=k.nodeName.toLowerCase(),j=c.attr(k,&quot;tabindex&quot;);return(/input|select|textarea|button|object/.test(l)?!k.disabled:&quot;a&quot;==l||&quot;area&quot;==l?k.href||!isNaN(j):!isNaN(j))&amp;&amp;!c(k)[&quot;area&quot;==l?&quot;parents&quot;:&quot;closest&quot;](&quot;:hidden&quot;).length},tabbable:function(k){var j=c.attr(k,&quot;tabindex&quot;);return(isNaN(j)||j&gt;=0)&amp;&amp;c(k).is(&quot;:focusable&quot;)}});function g(m,n,o,l){function k(q){var p=c[m][n][q]||[];return(typeof p==&quot;string&quot;?p.split(/,?\s+/):p)}var j=k(&quot;getter&quot;);if(l.length==1&amp;&amp;typeof l[0]==&quot;string&quot;){j=j.concat(k(&quot;getterSetter&quot;))}return(c.inArray(o,j)!=-1)}c.widget=function(k,j){var l=k.split(&quot;.&quot;)[0];k=k.split(&quot;.&quot;)[1];c.fn[k]=function(p){var n=(typeof p==&quot;string&quot;),o=Array.prototype.slice.call(arguments,1);if(n&amp;&amp;p.substring(0,1)==&quot;_&quot;){return this}if(n&amp;&amp;g(l,k,p,o)){var m=c.data(this[0],k);return(m?m[p].apply(m,o):undefined)}return this.each(function(){var q=c.data(this,k);(!q&amp;&amp;!n&amp;&amp;c.data(this,k,new c[l][k](this,p))._init());(q&amp;&amp;n&amp;&amp;c.isFunction(q[p])&amp;&amp;q[p].apply(q,o))})};c[l]=c[l]||{};c[l][k]=function(o,n){var m=this;this.namespace=l;this.widgetName=k;this.widgetEventPrefix=c[l][k].eventPrefix||k;this.widgetBaseClass=l+&quot;-&quot;+k;this.options=c.extend({},c.widget.defaults,c[l][k].defaults,c.metadata&amp;&amp;c.metadata.get(o)[k],n);this.element=c(o).bind(&quot;setData.&quot;+k,function(q,p,r){if(q.target==o){return m._setData(p,r)}}).bind(&quot;getData.&quot;+k,function(q,p){if(q.target==o){return m._getData(p)}}).bind(&quot;remove&quot;,function(){return m.destroy()})};c[l][k].prototype=c.extend({},c.widget.prototype,j);c[l][k].getterSetter=&quot;option&quot;};c.widget.prototype={_init:function(){},destroy:function(){this.element.removeData(this.widgetName).removeClass(this.widgetBaseClass+&quot;-disabled &quot;+this.namespace+&quot;-state-disabled&quot;).removeAttr(&quot;aria-disabled&quot;)},option:function(l,m){var k=l,j=this;if(typeof l==&quot;string&quot;){if(m===undefined){return this._getData(l)}k={};k[l]=m}c.each(k,function(n,o){j._setData(n,o)})},_getData:function(j){return this.options[j]},_setData:function(j,k){this.options[j]=k;if(j==&quot;disabled&quot;){this.element[k?&quot;addClass&quot;:&quot;removeClass&quot;](this.widgetBaseClass+&quot;-disabled &quot;+this.namespace+&quot;-state-disabled&quot;).attr(&quot;aria-disabled&quot;,k)}},enable:function(){this._setData(&quot;disabled&quot;,false)},disable:function(){this._setData(&quot;disabled&quot;,true)},_trigger:function(l,m,n){var p=this.options[l],j=(l==this.widgetEventPrefix?l:this.widgetEventPrefix+l);m=c.Event(m);m.type=j;if(m.originalEvent){for(var k=c.event.props.length,o;k;){o=c.event.props[--k];m[o]=m.originalEvent[o]}}this.element.trigger(m,n);return !(c.isFunction(p)&amp;&amp;p.call(this.element[0],m,n)===false||m.isDefaultPrevented())}};c.widget.defaults={disabled:false};c.ui.mouse={_mouseInit:function(){var j=this;this.element.bind(&quot;mousedown.&quot;+this.widgetName,function(k){return j._mouseDown(k)}).bind(&quot;click.&quot;+this.widgetName,function(k){if(j._preventClickEvent){j._preventClickEvent=false;k.stopImmediatePropagation();return false}});if(c.browser.msie){this._mouseUnselectable=this.element.attr(&quot;unselectable&quot;);this.element.attr(&quot;unselectable&quot;,&quot;on&quot;)}this.started=false},_mouseDestroy:function(){this.element.unbind(&quot;.&quot;+this.widgetName);(c.browser.msie&amp;&amp;this.element.attr(&quot;unselectable&quot;,this._mouseUnselectable))},_mouseDown:function(l){l.originalEvent=l.originalEvent||{};if(l.originalEvent.mouseHandled){return}(this._mouseStarted&amp;&amp;this._mouseUp(l));this._mouseDownEvent=l;var k=this,m=(l.which==1),j=(typeof this.options.cancel==&quot;string&quot;?c(l.target).parents().add(l.target).filter(this.options.cancel).length:false);if(!m||j||!this._mouseCapture(l)){return true}this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet){this._mouseDelayTimer=setTimeout(function(){k.mouseDelayMet=true},this.options.delay)}if(this._mouseDistanceMet(l)&amp;&amp;this._mouseDelayMet(l)){this._mouseStarted=(this._mouseStart(l)!==false);if(!this._mouseStarted){l.preventDefault();return true}}this._mouseMoveDelegate=function(n){return k._mouseMove(n)};this._mouseUpDelegate=function(n){return k._mouseUp(n)};c(document).bind(&quot;mousemove.&quot;+this.widgetName,this._mouseMoveDelegate).bind(&quot;mouseup.&quot;+this.widgetName,this._mouseUpDelegate);(c.browser.safari||l.preventDefault());l.originalEvent.mouseHandled=true;return true},_mouseMove:function(j){if(c.browser.msie&amp;&amp;!j.button){return this._mouseUp(j)}if(this._mouseStarted){this._mouseDrag(j);return j.preventDefault()}if(this._mouseDistanceMet(j)&amp;&amp;this._mouseDelayMet(j)){this._mouseStarted=(this._mouseStart(this._mouseDownEvent,j)!==false);(this._mouseStarted?this._mouseDrag(j):this._mouseUp(j))}return !this._mouseStarted},_mouseUp:function(j){c(document).unbind(&quot;mousemove.&quot;+this.widgetName,this._mouseMoveDelegate).unbind(&quot;mouseup.&quot;+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=false;this._preventClickEvent=(j.target==this._mouseDownEvent.target);this._mouseStop(j)}return false},_mouseDistanceMet:function(j){return(Math.max(Math.abs(this._mouseDownEvent.pageX-j.pageX),Math.abs(this._mouseDownEvent.pageY-j.pageY))&gt;=this.options.distance)},_mouseDelayMet:function(j){return this.mouseDelayMet},_mouseStart:function(j){},_mouseDrag:function(j){},_mouseStop:function(j){},_mouseCapture:function(j){return true}};c.ui.mouse.defaults={cancel:null,distance:1,delay:0}})(jQuery);
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkwpincludesjsjqueryuidialogjs"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/js/jquery/ui.dialog.js (13200 => 13201)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/js/jquery/ui.dialog.js        2010-02-18 20:08:35 UTC (rev 13200)
+++ trunk/wp-includes/js/jquery/ui.dialog.js        2010-02-18 20:49:16 UTC (rev 13201)
</span><span class="lines">@@ -1,5 +1,5 @@
</span><span class="cx"> /*
</span><del>- * jQuery UI Dialog 1.7.1
</del><ins>+ * jQuery UI Dialog 1.7.2
</ins><span class="cx">  *
</span><span class="cx">  * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about)
</span><span class="cx">  * Dual licensed under the MIT (MIT-LICENSE.txt)
</span><span class="lines">@@ -12,4 +12,4 @@
</span><span class="cx">  *        ui.draggable.js
</span><span class="cx">  *        ui.resizable.js
</span><span class="cx">  */
</span><del>-(function(c){var b={dragStart:&quot;start.draggable&quot;,drag:&quot;drag.draggable&quot;,dragStop:&quot;stop.draggable&quot;,maxHeight:&quot;maxHeight.resizable&quot;,minHeight:&quot;minHeight.resizable&quot;,maxWidth:&quot;maxWidth.resizable&quot;,minWidth:&quot;minWidth.resizable&quot;,resizeStart:&quot;start.resizable&quot;,resize:&quot;drag.resizable&quot;,resizeStop:&quot;stop.resizable&quot;},a=&quot;ui-dialog ui-widget ui-widget-content ui-corner-all &quot;;c.widget(&quot;ui.dialog&quot;,{_init:function(){this.originalTitle=this.element.attr(&quot;title&quot;);var l=this,m=this.options,j=m.title||this.originalTitle||&quot;&amp;nbsp;&quot;,e=c.ui.dialog.getTitleId(this.element),k=(this.uiDialog=c(&quot;&lt;div/&gt;&quot;)).appendTo(document.body).hide().addClass(a+m.dialogClass).css({position:&quot;absolute&quot;,overflow:&quot;hidden&quot;,zIndex:m.zIndex}).attr(&quot;tabIndex&quot;,-1).css(&quot;outline&quot;,0).keydown(function(n){(m.closeOnEscape&amp;&amp;n.keyCode&amp;&amp;n.keyCode==c.ui.keyCode.ESCAPE&amp;&amp;l.close(n))}).attr({role:&quot;dialog&quot;,&quot;aria-labelledby&quot;:e}).mousedown(function(n){l.moveToTop(false,n)}),g=this.element.show().removeAttr(&quot;title&quot;).addClass(&quot;ui-dialog-content ui-widget-content&quot;).appendTo(k),f=(this.uiDialogTitlebar=c(&quot;&lt;div&gt;&lt;/div&gt;&quot;)).addClass(&quot;ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix&quot;).prependTo(k),i=c('&lt;a href=&quot;#&quot;/&gt;').addClass(&quot;ui-dialog-titlebar-close ui-corner-all&quot;).attr(&quot;role&quot;,&quot;button&quot;).hover(function(){i.addClass(&quot;ui-state-hover&quot;)},function(){i.removeClass(&quot;ui-state-hover&quot;)}).focus(function(){i.addClass(&quot;ui-state-focus&quot;)}).blur(function(){i.removeClass(&quot;ui-state-focus&quot;)}).mousedown(function(n){n.stopPropagation()}).click(function(n){l.close(n);return false}).appendTo(f),h=(this.uiDialogTitlebarCloseText=c(&quot;&lt;span/&gt;&quot;)).addClass(&quot;ui-icon ui-icon-closethick&quot;).text(m.closeText).appendTo(i),d=c(&quot;&lt;span/&gt;&quot;).addClass(&quot;ui-dialog-title&quot;).attr(&quot;id&quot;,e).html(j).prependTo(f);f.find(&quot;*&quot;).add(f).disableSelection();(m.draggable&amp;&amp;c.fn.draggable&amp;&amp;this._makeDraggable());(m.resizable&amp;&amp;c.fn.resizable&amp;&amp;this._makeResizable());this._createButtons(m.buttons);this._isOpen=false;(m.bgiframe&amp;&amp;c.fn.bgiframe&amp;&amp;k.bgiframe());(m.autoOpen&amp;&amp;this.open())},destroy:function(){(this.overlay&amp;&amp;this.overlay.destroy());this.uiDialog.hide();this.element.unbind(&quot;.dialog&quot;).removeData(&quot;dialog&quot;).removeClass(&quot;ui-dialog-content ui-widget-content&quot;).hide().appendTo(&quot;body&quot;);this.uiDialog.remove();(this.originalTitle&amp;&amp;this.element.attr(&quot;title&quot;,this.originalTitle))},close:function(e){var d=this;if(false===d._trigger(&quot;beforeclose&quot;,e)){return}(d.overlay&amp;&amp;d.overlay.destroy());d.uiDialog.unbind(&quot;keypress.ui-dialog&quot;);(d.options.hide?d.uiDialog.hide(d.options.hide,function(){d._trigger(&quot;close&quot;,e)}):d.uiDialog.hide()&amp;&amp;d._trigger(&quot;close&quot;,e));c.ui.dialog.overlay.resize();d._isOpen=false},isOpen:function(){return this._isOpen},moveToTop:function(f,e){if((this.options.modal&amp;&amp;!f)||(!this.options.stack&amp;&amp;!this.options.modal)){return this._trigger(&quot;focus&quot;,e)}if(this.options.zIndex&gt;c.ui.dialog.maxZ){c.ui.dialog.maxZ=this.options.zIndex}(this.overlay&amp;&amp;this.overlay.$el.css(&quot;z-index&quot;,c.ui.dialog.overlay.maxZ=++c.ui.dialog.maxZ));var d={scrollTop:this.element.attr(&quot;scrollTop&quot;),scrollLeft:this.element.attr(&quot;scrollLeft&quot;)};this.uiDialog.css(&quot;z-index&quot;,++c.ui.dialog.maxZ);this.element.attr(d);this._trigger(&quot;focus&quot;,e)},open:function(){if(this._isOpen){return}var e=this.options,d=this.uiDialog;this.overlay=e.modal?new c.ui.dialog.overlay(this):null;(d.next().length&amp;&amp;d.appendTo(&quot;body&quot;));this._size();this._position(e.position);d.show(e.show);this.moveToTop(true);(e.modal&amp;&amp;d.bind(&quot;keypress.ui-dialog&quot;,function(h){if(h.keyCode!=c.ui.keyCode.TAB){return}var g=c(&quot;:tabbable&quot;,this),i=g.filter(&quot;:first&quot;)[0],f=g.filter(&quot;:last&quot;)[0];if(h.target==f&amp;&amp;!h.shiftKey){setTimeout(function(){i.focus()},1)}else{if(h.target==i&amp;&amp;h.shiftKey){setTimeout(function(){f.focus()},1)}}}));c([]).add(d.find(&quot;.ui-dialog-content :tabbable:first&quot;)).add(d.find(&quot;.ui-dialog-buttonpane :tabbable:first&quot;)).add(d).filter(&quot;:first&quot;).focus();this._trigger(&quot;open&quot;);this._isOpen=true},_createButtons:function(g){var f=this,d=false,e=c(&quot;&lt;div&gt;&lt;/div&gt;&quot;).addClass(&quot;ui-dialog-buttonpane ui-widget-content ui-helper-clearfix&quot;);this.uiDialog.find(&quot;.ui-dialog-buttonpane&quot;).remove();(typeof g==&quot;object&quot;&amp;&amp;g!==null&amp;&amp;c.each(g,function(){return !(d=true)}));if(d){c.each(g,function(h,i){c('&lt;button type=&quot;button&quot;&gt;&lt;/button&gt;').addClass(&quot;ui-state-default ui-corner-all&quot;).text(h).click(function(){i.apply(f.element[0],arguments)}).hover(function(){c(this).addClass(&quot;ui-state-hover&quot;)},function(){c(this).removeClass(&quot;ui-state-hover&quot;)}).focus(function(){c(this).addClass(&quot;ui-state-focus&quot;)}).blur(function(){c(this).removeClass(&quot;ui-state-focus&quot;)}).appendTo(e)});e.appendTo(this.uiDialog)}},_makeDraggable:function(){var d=this,f=this.options,e;this.uiDialog.draggable({cancel:&quot;.ui-dialog-content&quot;,handle:&quot;.ui-dialog-titlebar&quot;,containment:&quot;document&quot;,start:function(){e=f.height;c(this).height(c(this).height()).addClass(&quot;ui-dialog-dragging&quot;);(f.dragStart&amp;&amp;f.dragStart.apply(d.element[0],arguments))},drag:function(){(f.drag&amp;&amp;f.drag.apply(d.element[0],arguments))},stop:function(){c(this).removeClass(&quot;ui-dialog-dragging&quot;).height(e);(f.dragStop&amp;&amp;f.dragStop.apply(d.element[0],arguments));c.ui.dialog.overlay.resize()}})},_makeResizable:function(g){g=(g===undefined?this.options.resizable:g);var d=this,f=this.options,e=typeof g==&quot;string&quot;?g:&quot;n,e,s,w,se,sw,ne,nw&quot;;this.uiDialog.resizable({cancel:&quot;.ui-dialog-content&quot;,alsoResize:this.element,maxWidth:f.maxWidth,maxHeight:f.maxHeight,minWidth:f.minWidth,minHeight:f.minHeight,start:function(){c(this).addClass(&quot;ui-dialog-resizing&quot;);(f.resizeStart&amp;&amp;f.resizeStart.apply(d.element[0],arguments))},resize:function(){(f.resize&amp;&amp;f.resize.apply(d.element[0],arguments))},handles:e,stop:function(){c(this).removeClass(&quot;ui-dialog-resizing&quot;);f.height=c(this).height();f.width=c(this).width();(f.resizeStop&amp;&amp;f.resizeStop.apply(d.element[0],arguments));c.ui.dialog.overlay.resize()}}).find(&quot;.ui-resizable-se&quot;).addClass(&quot;ui-icon ui-icon-grip-diagonal-se&quot;)},_position:function(i){var e=c(window),f=c(document),g=f.scrollTop(),d=f.scrollLeft(),h=g;if(c.inArray(i,[&quot;center&quot;,&quot;top&quot;,&quot;right&quot;,&quot;bottom&quot;,&quot;left&quot;])&gt;=0){i=[i==&quot;right&quot;||i==&quot;left&quot;?i:&quot;center&quot;,i==&quot;top&quot;||i==&quot;bottom&quot;?i:&quot;middle&quot;]}if(i.constructor!=Array){i=[&quot;center&quot;,&quot;middle&quot;]}if(i[0].constructor==Number){d+=i[0]}else{switch(i[0]){case&quot;left&quot;:d+=0;break;case&quot;right&quot;:d+=e.width()-this.uiDialog.outerWidth();break;default:case&quot;center&quot;:d+=(e.width()-this.uiDialog.outerWidth())/2}}if(i[1].constructor==Number){g+=i[1]}else{switch(i[1]){case&quot;top&quot;:g+=0;break;case&quot;bottom&quot;:g+=e.height()-this.uiDialog.outerHeight();break;default:case&quot;middle&quot;:g+=(e.height()-this.uiDialog.outerHeight())/2}}g=Math.max(g,h);this.uiDialog.css({top:g,left:d})},_setData:function(e,f){(b[e]&amp;&amp;this.uiDialog.data(b[e],f));switch(e){case&quot;buttons&quot;:this._createButtons(f);break;case&quot;closeText&quot;:this.uiDialogTitlebarCloseText.text(f);break;case&quot;dialogClass&quot;:this.uiDialog.removeClass(this.options.dialogClass).addClass(a+f);break;case&quot;draggable&quot;:(f?this._makeDraggable():this.uiDialog.draggable(&quot;destroy&quot;));break;case&quot;height&quot;:this.uiDialog.height(f);break;case&quot;position&quot;:this._position(f);break;case&quot;resizable&quot;:var d=this.uiDialog,g=this.uiDialog.is(&quot;:data(resizable)&quot;);(g&amp;&amp;!f&amp;&amp;d.resizable(&quot;destroy&quot;));(g&amp;&amp;typeof f==&quot;string&quot;&amp;&amp;d.resizable(&quot;option&quot;,&quot;handles&quot;,f));(g||this._makeResizable(f));break;case&quot;title&quot;:c(&quot;.ui-dialog-title&quot;,this.uiDialogTitlebar).html(f||&quot;&amp;nbsp;&quot;);break;case&quot;width&quot;:this.uiDialog.width(f);break}c.widget.prototype._setData.apply(this,arguments)},_size:function(){var e=this.options;this.element.css({height:0,minHeight:0,width:&quot;auto&quot;});var d=this.uiDialog.css({height:&quot;auto&quot;,width:e.width}).height();this.element.css({minHeight:Math.max(e.minHeight-d,0),height:e.height==&quot;auto&quot;?&quot;auto&quot;:Math.max(e.height-d,0)})}});c.extend(c.ui.dialog,{version:&quot;1.7.1&quot;,defaults:{autoOpen:true,bgiframe:false,buttons:{},closeOnEscape:true,closeText:&quot;close&quot;,dialogClass:&quot;&quot;,draggable:true,hide:null,height:&quot;auto&quot;,maxHeight:false,maxWidth:false,minHeight:150,minWidth:150,modal:false,position:&quot;center&quot;,resizable:true,show:null,stack:true,title:&quot;&quot;,width:300,zIndex:1000},getter:&quot;isOpen&quot;,uuid:0,maxZ:0,getTitleId:function(d){return&quot;ui-dialog-title-&quot;+(d.attr(&quot;id&quot;)||++this.uuid)},overlay:function(d){this.$el=c.ui.dialog.overlay.create(d)}});c.extend(c.ui.dialog.overlay,{instances:[],maxZ:0,events:c.map(&quot;focus,mousedown,mouseup,keydown,keypress,click&quot;.split(&quot;,&quot;),function(d){return d+&quot;.dialog-overlay&quot;}).join(&quot; &quot;),create:function(e){if(this.instances.length===0){setTimeout(function(){c(document).bind(c.ui.dialog.overlay.events,function(f){var g=c(f.target).parents(&quot;.ui-dialog&quot;).css(&quot;zIndex&quot;)||0;return(g&gt;c.ui.dialog.overlay.maxZ)})},1);c(document).bind(&quot;keydown.dialog-overlay&quot;,function(f){(e.options.closeOnEscape&amp;&amp;f.keyCode&amp;&amp;f.keyCode==c.ui.keyCode.ESCAPE&amp;&amp;e.close(f))});c(window).bind(&quot;resize.dialog-overlay&quot;,c.ui.dialog.overlay.resize)}var d=c(&quot;&lt;div&gt;&lt;/div&gt;&quot;).appendTo(document.body).addClass(&quot;ui-widget-overlay&quot;).css({width:this.width(),height:this.height()});(e.options.bgiframe&amp;&amp;c.fn.bgiframe&amp;&amp;d.bgiframe());this.instances.push(d);return d},destroy:function(d){this.instances.splice(c.inArray(this.instances,d),1);if(this.instances.length===0){c([document,window]).unbind(&quot;.dialog-overlay&quot;)}d.remove()},height:function(){if(c.browser.msie&amp;&amp;c.browser.version&lt;7){var e=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);var d=Math.max(document.documentElement.offsetHeight,document.body.offsetHeight);if(e&lt;d){return c(window).height()+&quot;px&quot;}else{return e+&quot;px&quot;}}else{return c(document).height()+&quot;px&quot;}},width:function(){if(c.browser.msie&amp;&amp;c.browser.version&lt;7){var d=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth);var e=Math.max(document.documentElement.offsetWidth,document.body.offsetWidth);if(d&lt;e){return c(window).width()+&quot;px&quot;}else{return d+&quot;px&quot;}}else{return c(document).width()+&quot;px&quot;}},resize:function(){var d=c([]);c.each(c.ui.dialog.overlay.instances,function(){d=d.add(this)});d.css({width:0,height:0}).css({width:c.ui.dialog.overlay.width(),height:c.ui.dialog.overlay.height()})}});c.extend(c.ui.dialog.overlay.prototype,{destroy:function(){c.ui.dialog.overlay.destroy(this.$el)}})})(jQuery);
</del><span class="cx">\ No newline at end of file
</span><ins>+(function(c){var b={dragStart:&quot;start.draggable&quot;,drag:&quot;drag.draggable&quot;,dragStop:&quot;stop.draggable&quot;,maxHeight:&quot;maxHeight.resizable&quot;,minHeight:&quot;minHeight.resizable&quot;,maxWidth:&quot;maxWidth.resizable&quot;,minWidth:&quot;minWidth.resizable&quot;,resizeStart:&quot;start.resizable&quot;,resize:&quot;drag.resizable&quot;,resizeStop:&quot;stop.resizable&quot;},a=&quot;ui-dialog ui-widget ui-widget-content ui-corner-all &quot;;c.widget(&quot;ui.dialog&quot;,{_init:function(){this.originalTitle=this.element.attr(&quot;title&quot;);var l=this,m=this.options,j=m.title||this.originalTitle||&quot;&amp;nbsp;&quot;,e=c.ui.dialog.getTitleId(this.element),k=(this.uiDialog=c(&quot;&lt;div/&gt;&quot;)).appendTo(document.body).hide().addClass(a+m.dialogClass).css({position:&quot;absolute&quot;,overflow:&quot;hidden&quot;,zIndex:m.zIndex}).attr(&quot;tabIndex&quot;,-1).css(&quot;outline&quot;,0).keydown(function(n){(m.closeOnEscape&amp;&amp;n.keyCode&amp;&amp;n.keyCode==c.ui.keyCode.ESCAPE&amp;&amp;l.close(n))}).attr({role:&quot;dialog&quot;,&quot;aria-labelledby&quot;:e}).mousedown(function(n){l.moveToTop(false,n)}),g=this.element.show().removeAttr(&quot;title&quot;).addClass(&quot;ui-dialog-content ui-widget-content&quot;).appendTo(k),f=(this.uiDialogTitlebar=c(&quot;&lt;div&gt;&lt;/div&gt;&quot;)).addClass(&quot;ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix&quot;).prependTo(k),i=c('&lt;a href=&quot;#&quot;/&gt;').addClass(&quot;ui-dialog-titlebar-close ui-corner-all&quot;).attr(&quot;role&quot;,&quot;button&quot;).hover(function(){i.addClass(&quot;ui-state-hover&quot;)},function(){i.removeClass(&quot;ui-state-hover&quot;)}).focus(function(){i.addClass(&quot;ui-state-focus&quot;)}).blur(function(){i.removeClass(&quot;ui-state-focus&quot;)}).mousedown(function(n){n.stopPropagation()}).click(function(n){l.close(n);return false}).appendTo(f),h=(this.uiDialogTitlebarCloseText=c(&quot;&lt;span/&gt;&quot;)).addClass(&quot;ui-icon ui-icon-closethick&quot;).text(m.closeText).appendTo(i),d=c(&quot;&lt;span/&gt;&quot;).addClass(&quot;ui-dialog-title&quot;).attr(&quot;id&quot;,e).html(j).prependTo(f);f.find(&quot;*&quot;).add(f).disableSelection();(m.draggable&amp;&amp;c.fn.draggable&amp;&amp;this._makeDraggable());(m.resizable&amp;&amp;c.fn.resizable&amp;&amp;this._makeResizable());this._createButtons(m.buttons);this._isOpen=false;(m.bgiframe&amp;&amp;c.fn.bgiframe&amp;&amp;k.bgiframe());(m.autoOpen&amp;&amp;this.open())},destroy:function(){(this.overlay&amp;&amp;this.overlay.destroy());this.uiDialog.hide();this.element.unbind(&quot;.dialog&quot;).removeData(&quot;dialog&quot;).removeClass(&quot;ui-dialog-content ui-widget-content&quot;).hide().appendTo(&quot;body&quot;);this.uiDialog.remove();(this.originalTitle&amp;&amp;this.element.attr(&quot;title&quot;,this.originalTitle))},close:function(f){var d=this;if(false===d._trigger(&quot;beforeclose&quot;,f)){return}(d.overlay&amp;&amp;d.overlay.destroy());d.uiDialog.unbind(&quot;keypress.ui-dialog&quot;);(d.options.hide?d.uiDialog.hide(d.options.hide,function(){d._trigger(&quot;close&quot;,f)}):d.uiDialog.hide()&amp;&amp;d._trigger(&quot;close&quot;,f));c.ui.dialog.overlay.resize();d._isOpen=false;if(d.options.modal){var e=0;c(&quot;.ui-dialog&quot;).each(function(){if(this!=d.uiDialog[0]){e=Math.max(e,c(this).css(&quot;z-index&quot;))}});c.ui.dialog.maxZ=e}},isOpen:function(){return this._isOpen},moveToTop:function(f,e){if((this.options.modal&amp;&amp;!f)||(!this.options.stack&amp;&amp;!this.options.modal)){return this._trigger(&quot;focus&quot;,e)}if(this.options.zIndex&gt;c.ui.dialog.maxZ){c.ui.dialog.maxZ=this.options.zIndex}(this.overlay&amp;&amp;this.overlay.$el.css(&quot;z-index&quot;,c.ui.dialog.overlay.maxZ=++c.ui.dialog.maxZ));var d={scrollTop:this.element.attr(&quot;scrollTop&quot;),scrollLeft:this.element.attr(&quot;scrollLeft&quot;)};this.uiDialog.css(&quot;z-index&quot;,++c.ui.dialog.maxZ);this.element.attr(d);this._trigger(&quot;focus&quot;,e)},open:function(){if(this._isOpen){return}var e=this.options,d=this.uiDialog;this.overlay=e.modal?new c.ui.dialog.overlay(this):null;(d.next().length&amp;&amp;d.appendTo(&quot;body&quot;));this._size();this._position(e.position);d.show(e.show);this.moveToTop(true);(e.modal&amp;&amp;d.bind(&quot;keypress.ui-dialog&quot;,function(h){if(h.keyCode!=c.ui.keyCode.TAB){return}var g=c(&quot;:tabbable&quot;,this),i=g.filter(&quot;:first&quot;)[0],f=g.filter(&quot;:last&quot;)[0];if(h.target==f&amp;&amp;!h.shiftKey){setTimeout(function(){i.focus()},1)}else{if(h.target==i&amp;&amp;h.shiftKey){setTimeout(function(){f.focus()},1)}}}));c([]).add(d.find(&quot;.ui-dialog-content :tabbable:first&quot;)).add(d.find(&quot;.ui-dialog-buttonpane :tabbable:first&quot;)).add(d).filter(&quot;:first&quot;).focus();this._trigger(&quot;open&quot;);this._isOpen=true},_createButtons:function(g){var f=this,d=false,e=c(&quot;&lt;div&gt;&lt;/div&gt;&quot;).addClass(&quot;ui-dialog-buttonpane ui-widget-content ui-helper-clearfix&quot;);this.uiDialog.find(&quot;.ui-dialog-buttonpane&quot;).remove();(typeof g==&quot;object&quot;&amp;&amp;g!==null&amp;&amp;c.each(g,function(){return !(d=true)}));if(d){c.each(g,function(h,i){c('&lt;button type=&quot;button&quot;&gt;&lt;/button&gt;').addClass(&quot;ui-state-default ui-corner-all&quot;).text(h).click(function(){i.apply(f.element[0],arguments)}).hover(function(){c(this).addClass(&quot;ui-state-hover&quot;)},function(){c(this).removeClass(&quot;ui-state-hover&quot;)}).focus(function(){c(this).addClass(&quot;ui-state-focus&quot;)}).blur(function(){c(this).removeClass(&quot;ui-state-focus&quot;)}).appendTo(e)});e.appendTo(this.uiDialog)}},_makeDraggable:function(){var d=this,f=this.options,e;this.uiDialog.draggable({cancel:&quot;.ui-dialog-content&quot;,handle:&quot;.ui-dialog-titlebar&quot;,containment:&quot;document&quot;,start:function(){e=f.height;c(this).height(c(this).height()).addClass(&quot;ui-dialog-dragging&quot;);(f.dragStart&amp;&amp;f.dragStart.apply(d.element[0],arguments))},drag:function(){(f.drag&amp;&amp;f.drag.apply(d.element[0],arguments))},stop:function(){c(this).removeClass(&quot;ui-dialog-dragging&quot;).height(e);(f.dragStop&amp;&amp;f.dragStop.apply(d.element[0],arguments));c.ui.dialog.overlay.resize()}})},_makeResizable:function(g){g=(g===undefined?this.options.resizable:g);var d=this,f=this.options,e=typeof g==&quot;string&quot;?g:&quot;n,e,s,w,se,sw,ne,nw&quot;;this.uiDialog.resizable({cancel:&quot;.ui-dialog-content&quot;,alsoResize:this.element,maxWidth:f.maxWidth,maxHeight:f.maxHeight,minWidth:f.minWidth,minHeight:f.minHeight,start:function(){c(this).addClass(&quot;ui-dialog-resizing&quot;);(f.resizeStart&amp;&amp;f.resizeStart.apply(d.element[0],arguments))},resize:function(){(f.resize&amp;&amp;f.resize.apply(d.element[0],arguments))},handles:e,stop:function(){c(this).removeClass(&quot;ui-dialog-resizing&quot;);f.height=c(this).height();f.width=c(this).width();(f.resizeStop&amp;&amp;f.resizeStop.apply(d.element[0],arguments));c.ui.dialog.overlay.resize()}}).find(&quot;.ui-resizable-se&quot;).addClass(&quot;ui-icon ui-icon-grip-diagonal-se&quot;)},_position:function(i){var e=c(window),f=c(document),g=f.scrollTop(),d=f.scrollLeft(),h=g;if(c.inArray(i,[&quot;center&quot;,&quot;top&quot;,&quot;right&quot;,&quot;bottom&quot;,&quot;left&quot;])&gt;=0){i=[i==&quot;right&quot;||i==&quot;left&quot;?i:&quot;center&quot;,i==&quot;top&quot;||i==&quot;bottom&quot;?i:&quot;middle&quot;]}if(i.constructor!=Array){i=[&quot;center&quot;,&quot;middle&quot;]}if(i[0].constructor==Number){d+=i[0]}else{switch(i[0]){case&quot;left&quot;:d+=0;break;case&quot;right&quot;:d+=e.width()-this.uiDialog.outerWidth();break;default:case&quot;center&quot;:d+=(e.width()-this.uiDialog.outerWidth())/2}}if(i[1].constructor==Number){g+=i[1]}else{switch(i[1]){case&quot;top&quot;:g+=0;break;case&quot;bottom&quot;:g+=e.height()-this.uiDialog.outerHeight();break;default:case&quot;middle&quot;:g+=(e.height()-this.uiDialog.outerHeight())/2}}g=Math.max(g,h);this.uiDialog.css({top:g,left:d})},_setData:function(e,f){(b[e]&amp;&amp;this.uiDialog.data(b[e],f));switch(e){case&quot;buttons&quot;:this._createButtons(f);break;case&quot;closeText&quot;:this.uiDialogTitlebarCloseText.text(f);break;case&quot;dialogClass&quot;:this.uiDialog.removeClass(this.options.dialogClass).addClass(a+f);break;case&quot;draggable&quot;:(f?this._makeDraggable():this.uiDialog.draggable(&quot;destroy&quot;));break;case&quot;height&quot;:this.uiDialog.height(f);break;case&quot;position&quot;:this._position(f);break;case&quot;resizable&quot;:var d=this.uiDialog,g=this.uiDialog.is(&quot;:data(resizable)&quot;);(g&amp;&amp;!f&amp;&amp;d.resizable(&quot;destroy&quot;));(g&amp;&amp;typeof f==&quot;string&quot;&amp;&amp;d.resizable(&quot;option&quot;,&quot;handles&quot;,f));(g||this._makeResizable(f));break;case&quot;title&quot;:c(&quot;.ui-dialog-title&quot;,this.uiDialogTitlebar).html(f||&quot;&amp;nbsp;&quot;);break;case&quot;width&quot;:this.uiDialog.width(f);break}c.widget.prototype._setData.apply(this,arguments)},_size:function(){var e=this.options;this.element.css({height:0,minHeight:0,width:&quot;auto&quot;});var d=this.uiDialog.css({height:&quot;auto&quot;,width:e.width}).height();this.element.css({minHeight:Math.max(e.minHeight-d,0),height:e.height==&quot;auto&quot;?&quot;auto&quot;:Math.max(e.height-d,0)})}});c.extend(c.ui.dialog,{version:&quot;1.7.2&quot;,defaults:{autoOpen:true,bgiframe:false,buttons:{},closeOnEscape:true,closeText:&quot;close&quot;,dialogClass:&quot;&quot;,draggable:true,hide:null,height:&quot;auto&quot;,maxHeight:false,maxWidth:false,minHeight:150,minWidth:150,modal:false,position:&quot;center&quot;,resizable:true,show:null,stack:true,title:&quot;&quot;,width:300,zIndex:1000},getter:&quot;isOpen&quot;,uuid:0,maxZ:0,getTitleId:function(d){return&quot;ui-dialog-title-&quot;+(d.attr(&quot;id&quot;)||++this.uuid)},overlay:function(d){this.$el=c.ui.dialog.overlay.create(d)}});c.extend(c.ui.dialog.overlay,{instances:[],maxZ:0,events:c.map(&quot;focus,mousedown,mouseup,keydown,keypress,click&quot;.split(&quot;,&quot;),function(d){return d+&quot;.dialog-overlay&quot;}).join(&quot; &quot;),create:function(e){if(this.instances.length===0){setTimeout(function(){if(c.ui.dialog.overlay.instances.length){c(document).bind(c.ui.dialog.overlay.events,function(f){var g=c(f.target).parents(&quot;.ui-dialog&quot;).css(&quot;zIndex&quot;)||0;return(g&gt;c.ui.dialog.overlay.maxZ)})}},1);c(document).bind(&quot;keydown.dialog-overlay&quot;,function(f){(e.options.closeOnEscape&amp;&amp;f.keyCode&amp;&amp;f.keyCode==c.ui.keyCode.ESCAPE&amp;&amp;e.close(f))});c(window).bind(&quot;resize.dialog-overlay&quot;,c.ui.dialog.overlay.resize)}var d=c(&quot;&lt;div&gt;&lt;/div&gt;&quot;).appendTo(document.body).addClass(&quot;ui-widget-overlay&quot;).css({width:this.width(),height:this.height()});(e.options.bgiframe&amp;&amp;c.fn.bgiframe&amp;&amp;d.bgiframe());this.instances.push(d);return d},destroy:function(d){this.instances.splice(c.inArray(this.instances,d),1);if(this.instances.length===0){c([document,window]).unbind(&quot;.dialog-overlay&quot;)}d.remove();var e=0;c.each(this.instances,function(){e=Math.max(e,this.css(&quot;z-index&quot;))});this.maxZ=e},height:function(){if(c.browser.msie&amp;&amp;c.browser.version&lt;7){var e=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);var d=Math.max(document.documentElement.offsetHeight,document.body.offsetHeight);if(e&lt;d){return c(window).height()+&quot;px&quot;}else{return e+&quot;px&quot;}}else{return c(document).height()+&quot;px&quot;}},width:function(){if(c.browser.msie&amp;&amp;c.browser.version&lt;7){var d=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth);var e=Math.max(document.documentElement.offsetWidth,document.body.offsetWidth);if(d&lt;e){return c(window).width()+&quot;px&quot;}else{return d+&quot;px&quot;}}else{return c(document).width()+&quot;px&quot;}},resize:function(){var d=c([]);c.each(c.ui.dialog.overlay.instances,function(){d=d.add(this)});d.css({width:0,height:0}).css({width:c.ui.dialog.overlay.width(),height:c.ui.dialog.overlay.height()})}});c.extend(c.ui.dialog.overlay.prototype,{destroy:function(){c.ui.dialog.overlay.destroy(this.$el)}})})(jQuery);
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkwpincludesjsjqueryuidraggablejs"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/js/jquery/ui.draggable.js (13200 => 13201)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/js/jquery/ui.draggable.js        2010-02-18 20:08:35 UTC (rev 13200)
+++ trunk/wp-includes/js/jquery/ui.draggable.js        2010-02-18 20:49:16 UTC (rev 13201)
</span><span class="lines">@@ -1,5 +1,5 @@
</span><span class="cx"> /*
</span><del>- * jQuery UI Draggable 1.7.1
</del><ins>+ * jQuery UI Draggable 1.7.2
</ins><span class="cx">  *
</span><span class="cx">  * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about)
</span><span class="cx">  * Dual licensed under the MIT (MIT-LICENSE.txt)
</span><span class="lines">@@ -10,4 +10,4 @@
</span><span class="cx">  * Depends:
</span><span class="cx">  *        ui.core.js
</span><span class="cx">  */
</span><del>-(function(a){a.widget(&quot;ui.draggable&quot;,a.extend({},a.ui.mouse,{_init:function(){if(this.options.helper==&quot;original&quot;&amp;&amp;!(/^(?:r|a|f)/).test(this.element.css(&quot;position&quot;))){this.element[0].style.position=&quot;relative&quot;}(this.options.addClasses&amp;&amp;this.element.addClass(&quot;ui-draggable&quot;));(this.options.disabled&amp;&amp;this.element.addClass(&quot;ui-draggable-disabled&quot;));this._mouseInit()},destroy:function(){if(!this.element.data(&quot;draggable&quot;)){return}this.element.removeData(&quot;draggable&quot;).unbind(&quot;.draggable&quot;).removeClass(&quot;ui-draggable ui-draggable-dragging ui-draggable-disabled&quot;);this._mouseDestroy()},_mouseCapture:function(b){var c=this.options;if(this.helper||c.disabled||a(b.target).is(&quot;.ui-resizable-handle&quot;)){return false}this.handle=this._getHandle(b);if(!this.handle){return false}return true},_mouseStart:function(b){var c=this.options;this.helper=this._createHelper(b);this._cacheHelperProportions();if(a.ui.ddmanager){a.ui.ddmanager.current=this}this._cacheMargins();this.cssPosition=this.helper.css(&quot;position&quot;);this.scrollParent=this.helper.scrollParent();this.offset=this.element.offset();this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left};a.extend(this.offset,{click:{left:b.pageX-this.offset.left,top:b.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.originalPosition=this._generatePosition(b);this.originalPageX=b.pageX;this.originalPageY=b.pageY;if(c.cursorAt){this._adjustOffsetFromHelper(c.cursorAt)}if(c.containment){this._setContainment()}this._trigger(&quot;start&quot;,b);this._cacheHelperProportions();if(a.ui.ddmanager&amp;&amp;!c.dropBehaviour){a.ui.ddmanager.prepareOffsets(this,b)}this.helper.addClass(&quot;ui-draggable-dragging&quot;);this._mouseDrag(b,true);return true},_mouseDrag:function(b,d){this.position=this._generatePosition(b);this.positionAbs=this._convertPositionTo(&quot;absolute&quot;);if(!d){var c=this._uiHash();this._trigger(&quot;drag&quot;,b,c);this.position=c.position}if(!this.options.axis||this.options.axis!=&quot;y&quot;){this.helper[0].style.left=this.position.left+&quot;px&quot;}if(!this.options.axis||this.options.axis!=&quot;x&quot;){this.helper[0].style.top=this.position.top+&quot;px&quot;}if(a.ui.ddmanager){a.ui.ddmanager.drag(this,b)}return false},_mouseStop:function(c){var d=false;if(a.ui.ddmanager&amp;&amp;!this.options.dropBehaviour){d=a.ui.ddmanager.drop(this,c)}if(this.dropped){d=this.dropped;this.dropped=false}if((this.options.revert==&quot;invalid&quot;&amp;&amp;!d)||(this.options.revert==&quot;valid&quot;&amp;&amp;d)||this.options.revert===true||(a.isFunction(this.options.revert)&amp;&amp;this.options.revert.call(this.element,d))){var b=this;a(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){b._trigger(&quot;stop&quot;,c);b._clear()})}else{this._trigger(&quot;stop&quot;,c);this._clear()}return false},_getHandle:function(b){var c=!this.options.handle||!a(this.options.handle,this.element).length?true:false;a(this.options.handle,this.element).find(&quot;*&quot;).andSelf().each(function(){if(this==b.target){c=true}});return c},_createHelper:function(c){var d=this.options;var b=a.isFunction(d.helper)?a(d.helper.apply(this.element[0],[c])):(d.helper==&quot;clone&quot;?this.element.clone():this.element);if(!b.parents(&quot;body&quot;).length){b.appendTo((d.appendTo==&quot;parent&quot;?this.element[0].parentNode:d.appendTo))}if(b[0]!=this.element[0]&amp;&amp;!(/(fixed|absolute)/).test(b.css(&quot;position&quot;))){b.css(&quot;position&quot;,&quot;absolute&quot;)}return b},_adjustOffsetFromHelper:function(b){if(b.left!=undefined){this.offset.click.left=b.left+this.margins.left}if(b.right!=undefined){this.offset.click.left=this.helperProportions.width-b.right+this.margins.left}if(b.top!=undefined){this.offset.click.top=b.top+this.margins.top}if(b.bottom!=undefined){this.offset.click.top=this.helperProportions.height-b.bottom+this.margins.top}},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var b=this.offsetParent.offset();if(this.cssPosition==&quot;absolute&quot;&amp;&amp;this.scrollParent[0]!=document&amp;&amp;a.ui.contains(this.scrollParent[0],this.offsetParent[0])){b.left+=this.scrollParent.scrollLeft();b.top+=this.scrollParent.scrollTop()}if((this.offsetParent[0]==document.body)||(this.offsetParent[0].tagName&amp;&amp;this.offsetParent[0].tagName.toLowerCase()==&quot;html&quot;&amp;&amp;a.browser.msie)){b={top:0,left:0}}return{top:b.top+(parseInt(this.offsetParent.css(&quot;borderTopWidth&quot;),10)||0),left:b.left+(parseInt(this.offsetParent.css(&quot;borderLeftWidth&quot;),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition==&quot;relative&quot;){var b=this.element.position();return{top:b.top-(parseInt(this.helper.css(&quot;top&quot;),10)||0)+this.scrollParent.scrollTop(),left:b.left-(parseInt(this.helper.css(&quot;left&quot;),10)||0)+this.scrollParent.scrollLeft()}}else{return{top:0,left:0}}},_cacheMargins:function(){this.margins={left:(parseInt(this.element.css(&quot;marginLeft&quot;),10)||0),top:(parseInt(this.element.css(&quot;marginTop&quot;),10)||0)}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var e=this.options;if(e.containment==&quot;parent&quot;){e.containment=this.helper[0].parentNode}if(e.containment==&quot;document&quot;||e.containment==&quot;window&quot;){this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,a(e.containment==&quot;document&quot;?document:window).width()-this.helperProportions.width-this.margins.left,(a(e.containment==&quot;document&quot;?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]}if(!(/^(document|window|parent)$/).test(e.containment)&amp;&amp;e.containment.constructor!=Array){var c=a(e.containment)[0];if(!c){return}var d=a(e.containment).offset();var b=(a(c).css(&quot;overflow&quot;)!=&quot;hidden&quot;);this.containment=[d.left+(parseInt(a(c).css(&quot;borderLeftWidth&quot;),10)||0)+(parseInt(a(c).css(&quot;paddingLeft&quot;),10)||0)-this.margins.left,d.top+(parseInt(a(c).css(&quot;borderTopWidth&quot;),10)||0)+(parseInt(a(c).css(&quot;paddingTop&quot;),10)||0)-this.margins.top,d.left+(b?Math.max(c.scrollWidth,c.offsetWidth):c.offsetWidth)-(parseInt(a(c).css(&quot;borderLeftWidth&quot;),10)||0)-(parseInt(a(c).css(&quot;paddingRight&quot;),10)||0)-this.helperProportions.width-this.margins.left,d.top+(b?Math.max(c.scrollHeight,c.offsetHeight):c.offsetHeight)-(parseInt(a(c).css(&quot;borderTopWidth&quot;),10)||0)-(parseInt(a(c).css(&quot;paddingBottom&quot;),10)||0)-this.helperProportions.height-this.margins.top]}else{if(e.containment.constructor==Array){this.containment=e.containment}}},_convertPositionTo:function(f,h){if(!h){h=this.position}var c=f==&quot;absolute&quot;?1:-1;var e=this.options,b=this.cssPosition==&quot;absolute&quot;&amp;&amp;!(this.scrollParent[0]!=document&amp;&amp;a.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,g=(/(html|body)/i).test(b[0].tagName);return{top:(h.top+this.offset.relative.top*c+this.offset.parent.top*c-(a.browser.safari&amp;&amp;this.cssPosition==&quot;fixed&quot;?0:(this.cssPosition==&quot;fixed&quot;?-this.scrollParent.scrollTop():(g?0:b.scrollTop()))*c)),left:(h.left+this.offset.relative.left*c+this.offset.parent.left*c-(a.browser.safari&amp;&amp;this.cssPosition==&quot;fixed&quot;?0:(this.cssPosition==&quot;fixed&quot;?-this.scrollParent.scrollLeft():g?0:b.scrollLeft())*c))}},_generatePosition:function(e){var h=this.options,b=this.cssPosition==&quot;absolute&quot;&amp;&amp;!(this.scrollParent[0]!=document&amp;&amp;a.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,i=(/(html|body)/i).test(b[0].tagName);if(this.cssPosition==&quot;relative&quot;&amp;&amp;!(this.scrollParent[0]!=document&amp;&amp;this.scrollParent[0]!=this.offsetParent[0])){this.offset.relative=this._getRelativeOffset()}var d=e.pageX;var c=e.pageY;if(this.originalPosition){if(this.containment){if(e.pageX-this.offset.click.left&lt;this.containment[0]){d=this.containment[0]+this.offset.click.left}if(e.pageY-this.offset.click.top&lt;this.containment[1]){c=this.containment[1]+this.offset.click.top}if(e.pageX-this.offset.click.left&gt;this.containment[2]){d=this.containment[2]+this.offset.click.left}if(e.pageY-this.offset.click.top&gt;this.containment[3]){c=this.containment[3]+this.offset.click.top}}if(h.grid){var g=this.originalPageY+Math.round((c-this.originalPageY)/h.grid[1])*h.grid[1];c=this.containment?(!(g-this.offset.click.top&lt;this.containment[1]||g-this.offset.click.top&gt;this.containment[3])?g:(!(g-this.offset.click.top&lt;this.containment[1])?g-h.grid[1]:g+h.grid[1])):g;var f=this.originalPageX+Math.round((d-this.originalPageX)/h.grid[0])*h.grid[0];d=this.containment?(!(f-this.offset.click.left&lt;this.containment[0]||f-this.offset.click.left&gt;this.containment[2])?f:(!(f-this.offset.click.left&lt;this.containment[0])?f-h.grid[0]:f+h.grid[0])):f}}return{top:(c-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(a.browser.safari&amp;&amp;this.cssPosition==&quot;fixed&quot;?0:(this.cssPosition==&quot;fixed&quot;?-this.scrollParent.scrollTop():(i?0:b.scrollTop())))),left:(d-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(a.browser.safari&amp;&amp;this.cssPosition==&quot;fixed&quot;?0:(this.cssPosition==&quot;fixed&quot;?-this.scrollParent.scrollLeft():i?0:b.scrollLeft())))}},_clear:function(){this.helper.removeClass(&quot;ui-draggable-dragging&quot;);if(this.helper[0]!=this.element[0]&amp;&amp;!this.cancelHelperRemoval){this.helper.remove()}this.helper=null;this.cancelHelperRemoval=false},_trigger:function(b,c,d){d=d||this._uiHash();a.ui.plugin.call(this,b,[c,d]);if(b==&quot;drag&quot;){this.positionAbs=this._convertPositionTo(&quot;absolute&quot;)}return a.widget.prototype._trigger.call(this,b,c,d)},plugins:{},_uiHash:function(b){return{helper:this.helper,position:this.position,absolutePosition:this.positionAbs,offset:this.positionAbs}}}));a.extend(a.ui.draggable,{version:&quot;1.7.1&quot;,eventPrefix:&quot;drag&quot;,defaults:{addClasses:true,appendTo:&quot;parent&quot;,axis:false,cancel:&quot;:input,option&quot;,connectToSortable:false,containment:false,cursor:&quot;auto&quot;,cursorAt:false,delay:0,distance:1,grid:false,handle:false,helper:&quot;original&quot;,iframeFix:false,opacity:false,refreshPositions:false,revert:false,revertDuration:500,scope:&quot;default&quot;,scroll:true,scrollSensitivity:20,scrollSpeed:20,snap:false,snapMode:&quot;both&quot;,snapTolerance:20,stack:false,zIndex:false}});a.ui.plugin.add(&quot;draggable&quot;,&quot;connectToSortable&quot;,{start:function(c,e){var d=a(this).data(&quot;draggable&quot;),f=d.options,b=a.extend({},e,{item:d.element});d.sortables=[];a(f.connectToSortable).each(function(){var g=a.data(this,&quot;sortable&quot;);if(g&amp;&amp;!g.options.disabled){d.sortables.push({instance:g,shouldRevert:g.options.revert});g._refreshItems();g._trigger(&quot;activate&quot;,c,b)}})},stop:function(c,e){var d=a(this).data(&quot;draggable&quot;),b=a.extend({},e,{item:d.element});a.each(d.sortables,function(){if(this.instance.isOver){this.instance.isOver=0;d.cancelHelperRemoval=true;this.instance.cancelHelperRemoval=false;if(this.shouldRevert){this.instance.options.revert=true}this.instance._mouseStop(c);this.instance.options.helper=this.instance.options._helper;if(d.options.helper==&quot;original&quot;){this.instance.currentItem.css({top:&quot;auto&quot;,left:&quot;auto&quot;})}}else{this.instance.cancelHelperRemoval=false;this.instance._trigger(&quot;deactivate&quot;,c,b)}})},drag:function(c,f){var e=a(this).data(&quot;draggable&quot;),b=this;var d=function(i){var n=this.offset.click.top,m=this.offset.click.left;var g=this.positionAbs.top,k=this.positionAbs.left;var j=i.height,l=i.width;var p=i.top,h=i.left;return a.ui.isOver(g+n,k+m,p,h,j,l)};a.each(e.sortables,function(g){this.instance.positionAbs=e.positionAbs;this.instance.helperProportions=e.helperProportions;this.instance.offset.click=e.offset.click;if(this.instance._intersectsWith(this.instance.containerCache)){if(!this.instance.isOver){this.instance.isOver=1;this.instance.currentItem=a(b).clone().appendTo(this.instance.element).data(&quot;sortable-item&quot;,true);this.instance.options._helper=this.instance.options.helper;this.instance.options.helper=function(){return f.helper[0]};c.target=this.instance.currentItem[0];this.instance._mouseCapture(c,true);this.instance._mouseStart(c,true,true);this.instance.offset.click.top=e.offset.click.top;this.instance.offset.click.left=e.offset.click.left;this.instance.offset.parent.left-=e.offset.parent.left-this.instance.offset.parent.left;this.instance.offset.parent.top-=e.offset.parent.top-this.instance.offset.parent.top;e._trigger(&quot;toSortable&quot;,c);e.dropped=this.instance.element;e.currentItem=e.element;this.instance.fromOutside=e}if(this.instance.currentItem){this.instance._mouseDrag(c)}}else{if(this.instance.isOver){this.instance.isOver=0;this.instance.cancelHelperRemoval=true;this.instance.options.revert=false;this.instance._trigger(&quot;out&quot;,c,this.instance._uiHash(this.instance));this.instance._mouseStop(c,true);this.instance.options.helper=this.instance.options._helper;this.instance.currentItem.remove();if(this.instance.placeholder){this.instance.placeholder.remove()}e._trigger(&quot;fromSortable&quot;,c);e.dropped=false}}})}});a.ui.plugin.add(&quot;draggable&quot;,&quot;cursor&quot;,{start:function(c,d){var b=a(&quot;body&quot;),e=a(this).data(&quot;draggable&quot;).options;if(b.css(&quot;cursor&quot;)){e._cursor=b.css(&quot;cursor&quot;)}b.css(&quot;cursor&quot;,e.cursor)},stop:function(b,c){var d=a(this).data(&quot;draggable&quot;).options;if(d._cursor){a(&quot;body&quot;).css(&quot;cursor&quot;,d._cursor)}}});a.ui.plugin.add(&quot;draggable&quot;,&quot;iframeFix&quot;,{start:function(b,c){var d=a(this).data(&quot;draggable&quot;).options;a(d.iframeFix===true?&quot;iframe&quot;:d.iframeFix).each(function(){a('&lt;div class=&quot;ui-draggable-iframeFix&quot; style=&quot;background: #fff;&quot;&gt;&lt;/div&gt;').css({width:this.offsetWidth+&quot;px&quot;,height:this.offsetHeight+&quot;px&quot;,position:&quot;absolute&quot;,opacity:&quot;0.001&quot;,zIndex:1000}).css(a(this).offset()).appendTo(&quot;body&quot;)})},stop:function(b,c){a(&quot;div.ui-draggable-iframeFix&quot;).each(function(){this.parentNode.removeChild(this)})}});a.ui.plugin.add(&quot;draggable&quot;,&quot;opacity&quot;,{start:function(c,d){var b=a(d.helper),e=a(this).data(&quot;draggable&quot;).options;if(b.css(&quot;opacity&quot;)){e._opacity=b.css(&quot;opacity&quot;)}b.css(&quot;opacity&quot;,e.opacity)},stop:function(b,c){var d=a(this).data(&quot;draggable&quot;).options;if(d._opacity){a(c.helper).css(&quot;opacity&quot;,d._opacity)}}});a.ui.plugin.add(&quot;draggable&quot;,&quot;scroll&quot;,{start:function(c,d){var b=a(this).data(&quot;draggable&quot;);if(b.scrollParent[0]!=document&amp;&amp;b.scrollParent[0].tagName!=&quot;HTML&quot;){b.overflowOffset=b.scrollParent.offset()}},drag:function(d,e){var c=a(this).data(&quot;draggable&quot;),f=c.options,b=false;if(c.scrollParent[0]!=document&amp;&amp;c.scrollParent[0].tagName!=&quot;HTML&quot;){if(!f.axis||f.axis!=&quot;x&quot;){if((c.overflowOffset.top+c.scrollParent[0].offsetHeight)-d.pageY&lt;f.scrollSensitivity){c.scrollParent[0].scrollTop=b=c.scrollParent[0].scrollTop+f.scrollSpeed}else{if(d.pageY-c.overflowOffset.top&lt;f.scrollSensitivity){c.scrollParent[0].scrollTop=b=c.scrollParent[0].scrollTop-f.scrollSpeed}}}if(!f.axis||f.axis!=&quot;y&quot;){if((c.overflowOffset.left+c.scrollParent[0].offsetWidth)-d.pageX&lt;f.scrollSensitivity){c.scrollParent[0].scrollLeft=b=c.scrollParent[0].scrollLeft+f.scrollSpeed}else{if(d.pageX-c.overflowOffset.left&lt;f.scrollSensitivity){c.scrollParent[0].scrollLeft=b=c.scrollParent[0].scrollLeft-f.scrollSpeed}}}}else{if(!f.axis||f.axis!=&quot;x&quot;){if(d.pageY-a(document).scrollTop()&lt;f.scrollSensitivity){b=a(document).scrollTop(a(document).scrollTop()-f.scrollSpeed)}else{if(a(window).height()-(d.pageY-a(document).scrollTop())&lt;f.scrollSensitivity){b=a(document).scrollTop(a(document).scrollTop()+f.scrollSpeed)}}}if(!f.axis||f.axis!=&quot;y&quot;){if(d.pageX-a(document).scrollLeft()&lt;f.scrollSensitivity){b=a(document).scrollLeft(a(document).scrollLeft()-f.scrollSpeed)}else{if(a(window).width()-(d.pageX-a(document).scrollLeft())&lt;f.scrollSensitivity){b=a(document).scrollLeft(a(document).scrollLeft()+f.scrollSpeed)}}}}if(b!==false&amp;&amp;a.ui.ddmanager&amp;&amp;!f.dropBehaviour){a.ui.ddmanager.prepareOffsets(c,d)}}});a.ui.plugin.add(&quot;draggable&quot;,&quot;snap&quot;,{start:function(c,d){var b=a(this).data(&quot;draggable&quot;),e=b.options;b.snapElements=[];a(e.snap.constructor!=String?(e.snap.items||&quot;:data(draggable)&quot;):e.snap).each(function(){var g=a(this);var f=g.offset();if(this!=b.element[0]){b.snapElements.push({item:this,width:g.outerWidth(),height:g.outerHeight(),top:f.top,left:f.left})}})},drag:function(u,p){var g=a(this).data(&quot;draggable&quot;),q=g.options;var y=q.snapTolerance;var x=p.offset.left,w=x+g.helperProportions.width,f=p.offset.top,e=f+g.helperProportions.height;for(var v=g.snapElements.length-1;v&gt;=0;v--){var s=g.snapElements[v].left,n=s+g.snapElements[v].width,m=g.snapElements[v].top,A=m+g.snapElements[v].height;if(!((s-y&lt;x&amp;&amp;x&lt;n+y&amp;&amp;m-y&lt;f&amp;&amp;f&lt;A+y)||(s-y&lt;x&amp;&amp;x&lt;n+y&amp;&amp;m-y&lt;e&amp;&amp;e&lt;A+y)||(s-y&lt;w&amp;&amp;w&lt;n+y&amp;&amp;m-y&lt;f&amp;&amp;f&lt;A+y)||(s-y&lt;w&amp;&amp;w&lt;n+y&amp;&amp;m-y&lt;e&amp;&amp;e&lt;A+y))){if(g.snapElements[v].snapping){(g.options.snap.release&amp;&amp;g.options.snap.release.call(g.element,u,a.extend(g._uiHash(),{snapItem:g.snapElements[v].item})))}g.snapElements[v].snapping=false;continue}if(q.snapMode!=&quot;inner&quot;){var c=Math.abs(m-e)&lt;=y;var z=Math.abs(A-f)&lt;=y;var j=Math.abs(s-w)&lt;=y;var k=Math.abs(n-x)&lt;=y;if(c){p.position.top=g._convertPositionTo(&quot;relative&quot;,{top:m-g.helperProportions.height,left:0}).top-g.margins.top}if(z){p.position.top=g._convertPositionTo(&quot;relative&quot;,{top:A,left:0}).top-g.margins.top}if(j){p.position.left=g._convertPositionTo(&quot;relative&quot;,{top:0,left:s-g.helperProportions.width}).left-g.margins.left}if(k){p.position.left=g._convertPositionTo(&quot;relative&quot;,{top:0,left:n}).left-g.margins.left}}var h=(c||z||j||k);if(q.snapMode!=&quot;outer&quot;){var c=Math.abs(m-f)&lt;=y;var z=Math.abs(A-e)&lt;=y;var j=Math.abs(s-x)&lt;=y;var k=Math.abs(n-w)&lt;=y;if(c){p.position.top=g._convertPositionTo(&quot;relative&quot;,{top:m,left:0}).top-g.margins.top}if(z){p.position.top=g._convertPositionTo(&quot;relative&quot;,{top:A-g.helperProportions.height,left:0}).top-g.margins.top}if(j){p.position.left=g._convertPositionTo(&quot;relative&quot;,{top:0,left:s}).left-g.margins.left}if(k){p.position.left=g._convertPositionTo(&quot;relative&quot;,{top:0,left:n-g.helperProportions.width}).left-g.margins.left}}if(!g.snapElements[v].snapping&amp;&amp;(c||z||j||k||h)){(g.options.snap.snap&amp;&amp;g.options.snap.snap.call(g.element,u,a.extend(g._uiHash(),{snapItem:g.snapElements[v].item})))}g.snapElements[v].snapping=(c||z||j||k||h)}}});a.ui.plugin.add(&quot;draggable&quot;,&quot;stack&quot;,{start:function(b,c){var e=a(this).data(&quot;draggable&quot;).options;var d=a.makeArray(a(e.stack.group)).sort(function(g,f){return(parseInt(a(g).css(&quot;zIndex&quot;),10)||e.stack.min)-(parseInt(a(f).css(&quot;zIndex&quot;),10)||e.stack.min)});a(d).each(function(f){this.style.zIndex=e.stack.min+f});this[0].style.zIndex=e.stack.min+d.length}});a.ui.plugin.add(&quot;draggable&quot;,&quot;zIndex&quot;,{start:function(c,d){var b=a(d.helper),e=a(this).data(&quot;draggable&quot;).options;if(b.css(&quot;zIndex&quot;)){e._zIndex=b.css(&quot;zIndex&quot;)}b.css(&quot;zIndex&quot;,e.zIndex)},stop:function(b,c){var d=a(this).data(&quot;draggable&quot;).options;if(d._zIndex){a(c.helper).css(&quot;zIndex&quot;,d._zIndex)}}})})(jQuery);
</del><span class="cx">\ No newline at end of file
</span><ins>+(function(a){a.widget(&quot;ui.draggable&quot;,a.extend({},a.ui.mouse,{_init:function(){if(this.options.helper==&quot;original&quot;&amp;&amp;!(/^(?:r|a|f)/).test(this.element.css(&quot;position&quot;))){this.element[0].style.position=&quot;relative&quot;}(this.options.addClasses&amp;&amp;this.element.addClass(&quot;ui-draggable&quot;));(this.options.disabled&amp;&amp;this.element.addClass(&quot;ui-draggable-disabled&quot;));this._mouseInit()},destroy:function(){if(!this.element.data(&quot;draggable&quot;)){return}this.element.removeData(&quot;draggable&quot;).unbind(&quot;.draggable&quot;).removeClass(&quot;ui-draggable ui-draggable-dragging ui-draggable-disabled&quot;);this._mouseDestroy()},_mouseCapture:function(b){var c=this.options;if(this.helper||c.disabled||a(b.target).is(&quot;.ui-resizable-handle&quot;)){return false}this.handle=this._getHandle(b);if(!this.handle){return false}return true},_mouseStart:function(b){var c=this.options;this.helper=this._createHelper(b);this._cacheHelperProportions();if(a.ui.ddmanager){a.ui.ddmanager.current=this}this._cacheMargins();this.cssPosition=this.helper.css(&quot;position&quot;);this.scrollParent=this.helper.scrollParent();this.offset=this.element.offset();this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left};a.extend(this.offset,{click:{left:b.pageX-this.offset.left,top:b.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.originalPosition=this._generatePosition(b);this.originalPageX=b.pageX;this.originalPageY=b.pageY;if(c.cursorAt){this._adjustOffsetFromHelper(c.cursorAt)}if(c.containment){this._setContainment()}this._trigger(&quot;start&quot;,b);this._cacheHelperProportions();if(a.ui.ddmanager&amp;&amp;!c.dropBehaviour){a.ui.ddmanager.prepareOffsets(this,b)}this.helper.addClass(&quot;ui-draggable-dragging&quot;);this._mouseDrag(b,true);return true},_mouseDrag:function(b,d){this.position=this._generatePosition(b);this.positionAbs=this._convertPositionTo(&quot;absolute&quot;);if(!d){var c=this._uiHash();this._trigger(&quot;drag&quot;,b,c);this.position=c.position}if(!this.options.axis||this.options.axis!=&quot;y&quot;){this.helper[0].style.left=this.position.left+&quot;px&quot;}if(!this.options.axis||this.options.axis!=&quot;x&quot;){this.helper[0].style.top=this.position.top+&quot;px&quot;}if(a.ui.ddmanager){a.ui.ddmanager.drag(this,b)}return false},_mouseStop:function(c){var d=false;if(a.ui.ddmanager&amp;&amp;!this.options.dropBehaviour){d=a.ui.ddmanager.drop(this,c)}if(this.dropped){d=this.dropped;this.dropped=false}if((this.options.revert==&quot;invalid&quot;&amp;&amp;!d)||(this.options.revert==&quot;valid&quot;&amp;&amp;d)||this.options.revert===true||(a.isFunction(this.options.revert)&amp;&amp;this.options.revert.call(this.element,d))){var b=this;a(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){b._trigger(&quot;stop&quot;,c);b._clear()})}else{this._trigger(&quot;stop&quot;,c);this._clear()}return false},_getHandle:function(b){var c=!this.options.handle||!a(this.options.handle,this.element).length?true:false;a(this.options.handle,this.element).find(&quot;*&quot;).andSelf().each(function(){if(this==b.target){c=true}});return c},_createHelper:function(c){var d=this.options;var b=a.isFunction(d.helper)?a(d.helper.apply(this.element[0],[c])):(d.helper==&quot;clone&quot;?this.element.clone():this.element);if(!b.parents(&quot;body&quot;).length){b.appendTo((d.appendTo==&quot;parent&quot;?this.element[0].parentNode:d.appendTo))}if(b[0]!=this.element[0]&amp;&amp;!(/(fixed|absolute)/).test(b.css(&quot;position&quot;))){b.css(&quot;position&quot;,&quot;absolute&quot;)}return b},_adjustOffsetFromHelper:function(b){if(b.left!=undefined){this.offset.click.left=b.left+this.margins.left}if(b.right!=undefined){this.offset.click.left=this.helperProportions.width-b.right+this.margins.left}if(b.top!=undefined){this.offset.click.top=b.top+this.margins.top}if(b.bottom!=undefined){this.offset.click.top=this.helperProportions.height-b.bottom+this.margins.top}},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var b=this.offsetParent.offset();if(this.cssPosition==&quot;absolute&quot;&amp;&amp;this.scrollParent[0]!=document&amp;&amp;a.ui.contains(this.scrollParent[0],this.offsetParent[0])){b.left+=this.scrollParent.scrollLeft();b.top+=this.scrollParent.scrollTop()}if((this.offsetParent[0]==document.body)||(this.offsetParent[0].tagName&amp;&amp;this.offsetParent[0].tagName.toLowerCase()==&quot;html&quot;&amp;&amp;a.browser.msie)){b={top:0,left:0}}return{top:b.top+(parseInt(this.offsetParent.css(&quot;borderTopWidth&quot;),10)||0),left:b.left+(parseInt(this.offsetParent.css(&quot;borderLeftWidth&quot;),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition==&quot;relative&quot;){var b=this.element.position();return{top:b.top-(parseInt(this.helper.css(&quot;top&quot;),10)||0)+this.scrollParent.scrollTop(),left:b.left-(parseInt(this.helper.css(&quot;left&quot;),10)||0)+this.scrollParent.scrollLeft()}}else{return{top:0,left:0}}},_cacheMargins:function(){this.margins={left:(parseInt(this.element.css(&quot;marginLeft&quot;),10)||0),top:(parseInt(this.element.css(&quot;marginTop&quot;),10)||0)}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var e=this.options;if(e.containment==&quot;parent&quot;){e.containment=this.helper[0].parentNode}if(e.containment==&quot;document&quot;||e.containment==&quot;window&quot;){this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,a(e.containment==&quot;document&quot;?document:window).width()-this.helperProportions.width-this.margins.left,(a(e.containment==&quot;document&quot;?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]}if(!(/^(document|window|parent)$/).test(e.containment)&amp;&amp;e.containment.constructor!=Array){var c=a(e.containment)[0];if(!c){return}var d=a(e.containment).offset();var b=(a(c).css(&quot;overflow&quot;)!=&quot;hidden&quot;);this.containment=[d.left+(parseInt(a(c).css(&quot;borderLeftWidth&quot;),10)||0)+(parseInt(a(c).css(&quot;paddingLeft&quot;),10)||0)-this.margins.left,d.top+(parseInt(a(c).css(&quot;borderTopWidth&quot;),10)||0)+(parseInt(a(c).css(&quot;paddingTop&quot;),10)||0)-this.margins.top,d.left+(b?Math.max(c.scrollWidth,c.offsetWidth):c.offsetWidth)-(parseInt(a(c).css(&quot;borderLeftWidth&quot;),10)||0)-(parseInt(a(c).css(&quot;paddingRight&quot;),10)||0)-this.helperProportions.width-this.margins.left,d.top+(b?Math.max(c.scrollHeight,c.offsetHeight):c.offsetHeight)-(parseInt(a(c).css(&quot;borderTopWidth&quot;),10)||0)-(parseInt(a(c).css(&quot;paddingBottom&quot;),10)||0)-this.helperProportions.height-this.margins.top]}else{if(e.containment.constructor==Array){this.containment=e.containment}}},_convertPositionTo:function(f,h){if(!h){h=this.position}var c=f==&quot;absolute&quot;?1:-1;var e=this.options,b=this.cssPosition==&quot;absolute&quot;&amp;&amp;!(this.scrollParent[0]!=document&amp;&amp;a.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,g=(/(html|body)/i).test(b[0].tagName);return{top:(h.top+this.offset.relative.top*c+this.offset.parent.top*c-(a.browser.safari&amp;&amp;this.cssPosition==&quot;fixed&quot;?0:(this.cssPosition==&quot;fixed&quot;?-this.scrollParent.scrollTop():(g?0:b.scrollTop()))*c)),left:(h.left+this.offset.relative.left*c+this.offset.parent.left*c-(a.browser.safari&amp;&amp;this.cssPosition==&quot;fixed&quot;?0:(this.cssPosition==&quot;fixed&quot;?-this.scrollParent.scrollLeft():g?0:b.scrollLeft())*c))}},_generatePosition:function(e){var h=this.options,b=this.cssPosition==&quot;absolute&quot;&amp;&amp;!(this.scrollParent[0]!=document&amp;&amp;a.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,i=(/(html|body)/i).test(b[0].tagName);if(this.cssPosition==&quot;relative&quot;&amp;&amp;!(this.scrollParent[0]!=document&amp;&amp;this.scrollParent[0]!=this.offsetParent[0])){this.offset.relative=this._getRelativeOffset()}var d=e.pageX;var c=e.pageY;if(this.originalPosition){if(this.containment){if(e.pageX-this.offset.click.left&lt;this.containment[0]){d=this.containment[0]+this.offset.click.left}if(e.pageY-this.offset.click.top&lt;this.containment[1]){c=this.containment[1]+this.offset.click.top}if(e.pageX-this.offset.click.left&gt;this.containment[2]){d=this.containment[2]+this.offset.click.left}if(e.pageY-this.offset.click.top&gt;this.containment[3]){c=this.containment[3]+this.offset.click.top}}if(h.grid){var g=this.originalPageY+Math.round((c-this.originalPageY)/h.grid[1])*h.grid[1];c=this.containment?(!(g-this.offset.click.top&lt;this.containment[1]||g-this.offset.click.top&gt;this.containment[3])?g:(!(g-this.offset.click.top&lt;this.containment[1])?g-h.grid[1]:g+h.grid[1])):g;var f=this.originalPageX+Math.round((d-this.originalPageX)/h.grid[0])*h.grid[0];d=this.containment?(!(f-this.offset.click.left&lt;this.containment[0]||f-this.offset.click.left&gt;this.containment[2])?f:(!(f-this.offset.click.left&lt;this.containment[0])?f-h.grid[0]:f+h.grid[0])):f}}return{top:(c-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(a.browser.safari&amp;&amp;this.cssPosition==&quot;fixed&quot;?0:(this.cssPosition==&quot;fixed&quot;?-this.scrollParent.scrollTop():(i?0:b.scrollTop())))),left:(d-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(a.browser.safari&amp;&amp;this.cssPosition==&quot;fixed&quot;?0:(this.cssPosition==&quot;fixed&quot;?-this.scrollParent.scrollLeft():i?0:b.scrollLeft())))}},_clear:function(){this.helper.removeClass(&quot;ui-draggable-dragging&quot;);if(this.helper[0]!=this.element[0]&amp;&amp;!this.cancelHelperRemoval){this.helper.remove()}this.helper=null;this.cancelHelperRemoval=false},_trigger:function(b,c,d){d=d||this._uiHash();a.ui.plugin.call(this,b,[c,d]);if(b==&quot;drag&quot;){this.positionAbs=this._convertPositionTo(&quot;absolute&quot;)}return a.widget.prototype._trigger.call(this,b,c,d)},plugins:{},_uiHash:function(b){return{helper:this.helper,position:this.position,absolutePosition:this.positionAbs,offset:this.positionAbs}}}));a.extend(a.ui.draggable,{version:&quot;1.7.2&quot;,eventPrefix:&quot;drag&quot;,defaults:{addClasses:true,appendTo:&quot;parent&quot;,axis:false,cancel:&quot;:input,option&quot;,connectToSortable:false,containment:false,cursor:&quot;auto&quot;,cursorAt:false,delay:0,distance:1,grid:false,handle:false,helper:&quot;original&quot;,iframeFix:false,opacity:false,refreshPositions:false,revert:false,revertDuration:500,scope:&quot;default&quot;,scroll:true,scrollSensitivity:20,scrollSpeed:20,snap:false,snapMode:&quot;both&quot;,snapTolerance:20,stack:false,zIndex:false}});a.ui.plugin.add(&quot;draggable&quot;,&quot;connectToSortable&quot;,{start:function(c,e){var d=a(this).data(&quot;draggable&quot;),f=d.options,b=a.extend({},e,{item:d.element});d.sortables=[];a(f.connectToSortable).each(function(){var g=a.data(this,&quot;sortable&quot;);if(g&amp;&amp;!g.options.disabled){d.sortables.push({instance:g,shouldRevert:g.options.revert});g._refreshItems();g._trigger(&quot;activate&quot;,c,b)}})},stop:function(c,e){var d=a(this).data(&quot;draggable&quot;),b=a.extend({},e,{item:d.element});a.each(d.sortables,function(){if(this.instance.isOver){this.instance.isOver=0;d.cancelHelperRemoval=true;this.instance.cancelHelperRemoval=false;if(this.shouldRevert){this.instance.options.revert=true}this.instance._mouseStop(c);this.instance.options.helper=this.instance.options._helper;if(d.options.helper==&quot;original&quot;){this.instance.currentItem.css({top:&quot;auto&quot;,left:&quot;auto&quot;})}}else{this.instance.cancelHelperRemoval=false;this.instance._trigger(&quot;deactivate&quot;,c,b)}})},drag:function(c,f){var e=a(this).data(&quot;draggable&quot;),b=this;var d=function(i){var n=this.offset.click.top,m=this.offset.click.left;var g=this.positionAbs.top,k=this.positionAbs.left;var j=i.height,l=i.width;var p=i.top,h=i.left;return a.ui.isOver(g+n,k+m,p,h,j,l)};a.each(e.sortables,function(g){this.instance.positionAbs=e.positionAbs;this.instance.helperProportions=e.helperProportions;this.instance.offset.click=e.offset.click;if(this.instance._intersectsWith(this.instance.containerCache)){if(!this.instance.isOver){this.instance.isOver=1;this.instance.currentItem=a(b).clone().appendTo(this.instance.element).data(&quot;sortable-item&quot;,true);this.instance.options._helper=this.instance.options.helper;this.instance.options.helper=function(){return f.helper[0]};c.target=this.instance.currentItem[0];this.instance._mouseCapture(c,true);this.instance._mouseStart(c,true,true);this.instance.offset.click.top=e.offset.click.top;this.instance.offset.click.left=e.offset.click.left;this.instance.offset.parent.left-=e.offset.parent.left-this.instance.offset.parent.left;this.instance.offset.parent.top-=e.offset.parent.top-this.instance.offset.parent.top;e._trigger(&quot;toSortable&quot;,c);e.dropped=this.instance.element;e.currentItem=e.element;this.instance.fromOutside=e}if(this.instance.currentItem){this.instance._mouseDrag(c)}}else{if(this.instance.isOver){this.instance.isOver=0;this.instance.cancelHelperRemoval=true;this.instance.options.revert=false;this.instance._trigger(&quot;out&quot;,c,this.instance._uiHash(this.instance));this.instance._mouseStop(c,true);this.instance.options.helper=this.instance.options._helper;this.instance.currentItem.remove();if(this.instance.placeholder){this.instance.placeholder.remove()}e._trigger(&quot;fromSortable&quot;,c);e.dropped=false}}})}});a.ui.plugin.add(&quot;draggable&quot;,&quot;cursor&quot;,{start:function(c,d){var b=a(&quot;body&quot;),e=a(this).data(&quot;draggable&quot;).options;if(b.css(&quot;cursor&quot;)){e._cursor=b.css(&quot;cursor&quot;)}b.css(&quot;cursor&quot;,e.cursor)},stop:function(b,c){var d=a(this).data(&quot;draggable&quot;).options;if(d._cursor){a(&quot;body&quot;).css(&quot;cursor&quot;,d._cursor)}}});a.ui.plugin.add(&quot;draggable&quot;,&quot;iframeFix&quot;,{start:function(b,c){var d=a(this).data(&quot;draggable&quot;).options;a(d.iframeFix===true?&quot;iframe&quot;:d.iframeFix).each(function(){a('&lt;div class=&quot;ui-draggable-iframeFix&quot; style=&quot;background: #fff;&quot;&gt;&lt;/div&gt;').css({width:this.offsetWidth+&quot;px&quot;,height:this.offsetHeight+&quot;px&quot;,position:&quot;absolute&quot;,opacity:&quot;0.001&quot;,zIndex:1000}).css(a(this).offset()).appendTo(&quot;body&quot;)})},stop:function(b,c){a(&quot;div.ui-draggable-iframeFix&quot;).each(function(){this.parentNode.removeChild(this)})}});a.ui.plugin.add(&quot;draggable&quot;,&quot;opacity&quot;,{start:function(c,d){var b=a(d.helper),e=a(this).data(&quot;draggable&quot;).options;if(b.css(&quot;opacity&quot;)){e._opacity=b.css(&quot;opacity&quot;)}b.css(&quot;opacity&quot;,e.opacity)},stop:function(b,c){var d=a(this).data(&quot;draggable&quot;).options;if(d._opacity){a(c.helper).css(&quot;opacity&quot;,d._opacity)}}});a.ui.plugin.add(&quot;draggable&quot;,&quot;scroll&quot;,{start:function(c,d){var b=a(this).data(&quot;draggable&quot;);if(b.scrollParent[0]!=document&amp;&amp;b.scrollParent[0].tagName!=&quot;HTML&quot;){b.overflowOffset=b.scrollParent.offset()}},drag:function(d,e){var c=a(this).data(&quot;draggable&quot;),f=c.options,b=false;if(c.scrollParent[0]!=document&amp;&amp;c.scrollParent[0].tagName!=&quot;HTML&quot;){if(!f.axis||f.axis!=&quot;x&quot;){if((c.overflowOffset.top+c.scrollParent[0].offsetHeight)-d.pageY&lt;f.scrollSensitivity){c.scrollParent[0].scrollTop=b=c.scrollParent[0].scrollTop+f.scrollSpeed}else{if(d.pageY-c.overflowOffset.top&lt;f.scrollSensitivity){c.scrollParent[0].scrollTop=b=c.scrollParent[0].scrollTop-f.scrollSpeed}}}if(!f.axis||f.axis!=&quot;y&quot;){if((c.overflowOffset.left+c.scrollParent[0].offsetWidth)-d.pageX&lt;f.scrollSensitivity){c.scrollParent[0].scrollLeft=b=c.scrollParent[0].scrollLeft+f.scrollSpeed}else{if(d.pageX-c.overflowOffset.left&lt;f.scrollSensitivity){c.scrollParent[0].scrollLeft=b=c.scrollParent[0].scrollLeft-f.scrollSpeed}}}}else{if(!f.axis||f.axis!=&quot;x&quot;){if(d.pageY-a(document).scrollTop()&lt;f.scrollSensitivity){b=a(document).scrollTop(a(document).scrollTop()-f.scrollSpeed)}else{if(a(window).height()-(d.pageY-a(document).scrollTop())&lt;f.scrollSensitivity){b=a(document).scrollTop(a(document).scrollTop()+f.scrollSpeed)}}}if(!f.axis||f.axis!=&quot;y&quot;){if(d.pageX-a(document).scrollLeft()&lt;f.scrollSensitivity){b=a(document).scrollLeft(a(document).scrollLeft()-f.scrollSpeed)}else{if(a(window).width()-(d.pageX-a(document).scrollLeft())&lt;f.scrollSensitivity){b=a(document).scrollLeft(a(document).scrollLeft()+f.scrollSpeed)}}}}if(b!==false&amp;&amp;a.ui.ddmanager&amp;&amp;!f.dropBehaviour){a.ui.ddmanager.prepareOffsets(c,d)}}});a.ui.plugin.add(&quot;draggable&quot;,&quot;snap&quot;,{start:function(c,d){var b=a(this).data(&quot;draggable&quot;),e=b.options;b.snapElements=[];a(e.snap.constructor!=String?(e.snap.items||&quot;:data(draggable)&quot;):e.snap).each(function(){var g=a(this);var f=g.offset();if(this!=b.element[0]){b.snapElements.push({item:this,width:g.outerWidth(),height:g.outerHeight(),top:f.top,left:f.left})}})},drag:function(u,p){var g=a(this).data(&quot;draggable&quot;),q=g.options;var y=q.snapTolerance;var x=p.offset.left,w=x+g.helperProportions.width,f=p.offset.top,e=f+g.helperProportions.height;for(var v=g.snapElements.length-1;v&gt;=0;v--){var s=g.snapElements[v].left,n=s+g.snapElements[v].width,m=g.snapElements[v].top,A=m+g.snapElements[v].height;if(!((s-y&lt;x&amp;&amp;x&lt;n+y&amp;&amp;m-y&lt;f&amp;&amp;f&lt;A+y)||(s-y&lt;x&amp;&amp;x&lt;n+y&amp;&amp;m-y&lt;e&amp;&amp;e&lt;A+y)||(s-y&lt;w&amp;&amp;w&lt;n+y&amp;&amp;m-y&lt;f&amp;&amp;f&lt;A+y)||(s-y&lt;w&amp;&amp;w&lt;n+y&amp;&amp;m-y&lt;e&amp;&amp;e&lt;A+y))){if(g.snapElements[v].snapping){(g.options.snap.release&amp;&amp;g.options.snap.release.call(g.element,u,a.extend(g._uiHash(),{snapItem:g.snapElements[v].item})))}g.snapElements[v].snapping=false;continue}if(q.snapMode!=&quot;inner&quot;){var c=Math.abs(m-e)&lt;=y;var z=Math.abs(A-f)&lt;=y;var j=Math.abs(s-w)&lt;=y;var k=Math.abs(n-x)&lt;=y;if(c){p.position.top=g._convertPositionTo(&quot;relative&quot;,{top:m-g.helperProportions.height,left:0}).top-g.margins.top}if(z){p.position.top=g._convertPositionTo(&quot;relative&quot;,{top:A,left:0}).top-g.margins.top}if(j){p.position.left=g._convertPositionTo(&quot;relative&quot;,{top:0,left:s-g.helperProportions.width}).left-g.margins.left}if(k){p.position.left=g._convertPositionTo(&quot;relative&quot;,{top:0,left:n}).left-g.margins.left}}var h=(c||z||j||k);if(q.snapMode!=&quot;outer&quot;){var c=Math.abs(m-f)&lt;=y;var z=Math.abs(A-e)&lt;=y;var j=Math.abs(s-x)&lt;=y;var k=Math.abs(n-w)&lt;=y;if(c){p.position.top=g._convertPositionTo(&quot;relative&quot;,{top:m,left:0}).top-g.margins.top}if(z){p.position.top=g._convertPositionTo(&quot;relative&quot;,{top:A-g.helperProportions.height,left:0}).top-g.margins.top}if(j){p.position.left=g._convertPositionTo(&quot;relative&quot;,{top:0,left:s}).left-g.margins.left}if(k){p.position.left=g._convertPositionTo(&quot;relative&quot;,{top:0,left:n-g.helperProportions.width}).left-g.margins.left}}if(!g.snapElements[v].snapping&amp;&amp;(c||z||j||k||h)){(g.options.snap.snap&amp;&amp;g.options.snap.snap.call(g.element,u,a.extend(g._uiHash(),{snapItem:g.snapElements[v].item})))}g.snapElements[v].snapping=(c||z||j||k||h)}}});a.ui.plugin.add(&quot;draggable&quot;,&quot;stack&quot;,{start:function(b,c){var e=a(this).data(&quot;draggable&quot;).options;var d=a.makeArray(a(e.stack.group)).sort(function(g,f){return(parseInt(a(g).css(&quot;zIndex&quot;),10)||e.stack.min)-(parseInt(a(f).css(&quot;zIndex&quot;),10)||e.stack.min)});a(d).each(function(f){this.style.zIndex=e.stack.min+f});this[0].style.zIndex=e.stack.min+d.length}});a.ui.plugin.add(&quot;draggable&quot;,&quot;zIndex&quot;,{start:function(c,d){var b=a(d.helper),e=a(this).data(&quot;draggable&quot;).options;if(b.css(&quot;zIndex&quot;)){e._zIndex=b.css(&quot;zIndex&quot;)}b.css(&quot;zIndex&quot;,e.zIndex)},stop:function(b,c){var d=a(this).data(&quot;draggable&quot;).options;if(d._zIndex){a(c.helper).css(&quot;zIndex&quot;,d._zIndex)}}})})(jQuery);
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkwpincludesjsjqueryuidroppablejs"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/js/jquery/ui.droppable.js (13200 => 13201)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/js/jquery/ui.droppable.js        2010-02-18 20:08:35 UTC (rev 13200)
+++ trunk/wp-includes/js/jquery/ui.droppable.js        2010-02-18 20:49:16 UTC (rev 13201)
</span><span class="lines">@@ -1,5 +1,5 @@
</span><span class="cx"> /*
</span><del>- * jQuery UI Droppable 1.7.1
</del><ins>+ * jQuery UI Droppable 1.7.2
</ins><span class="cx">  *
</span><span class="cx">  * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about)
</span><span class="cx">  * Dual licensed under the MIT (MIT-LICENSE.txt)
</span><span class="lines">@@ -11,4 +11,4 @@
</span><span class="cx">  *        ui.core.js
</span><span class="cx">  *        ui.draggable.js
</span><span class="cx">  */
</span><del>-(function(a){a.widget(&quot;ui.droppable&quot;,{_init:function(){var c=this.options,b=c.accept;this.isover=0;this.isout=1;this.options.accept=this.options.accept&amp;&amp;a.isFunction(this.options.accept)?this.options.accept:function(e){return e.is(b)};this.proportions={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight};a.ui.ddmanager.droppables[this.options.scope]=a.ui.ddmanager.droppables[this.options.scope]||[];a.ui.ddmanager.droppables[this.options.scope].push(this);(this.options.addClasses&amp;&amp;this.element.addClass(&quot;ui-droppable&quot;))},destroy:function(){var b=a.ui.ddmanager.droppables[this.options.scope];for(var c=0;c&lt;b.length;c++){if(b[c]==this){b.splice(c,1)}}this.element.removeClass(&quot;ui-droppable ui-droppable-disabled&quot;).removeData(&quot;droppable&quot;).unbind(&quot;.droppable&quot;)},_setData:function(b,c){if(b==&quot;accept&quot;){this.options.accept=c&amp;&amp;a.isFunction(c)?c:function(e){return e.is(c)}}else{a.widget.prototype._setData.apply(this,arguments)}},_activate:function(c){var b=a.ui.ddmanager.current;if(this.options.activeClass){this.element.addClass(this.options.activeClass)}(b&amp;&amp;this._trigger(&quot;activate&quot;,c,this.ui(b)))},_deactivate:function(c){var b=a.ui.ddmanager.current;if(this.options.activeClass){this.element.removeClass(this.options.activeClass)}(b&amp;&amp;this._trigger(&quot;deactivate&quot;,c,this.ui(b)))},_over:function(c){var b=a.ui.ddmanager.current;if(!b||(b.currentItem||b.element)[0]==this.element[0]){return}if(this.options.accept.call(this.element[0],(b.currentItem||b.element))){if(this.options.hoverClass){this.element.addClass(this.options.hoverClass)}this._trigger(&quot;over&quot;,c,this.ui(b))}},_out:function(c){var b=a.ui.ddmanager.current;if(!b||(b.currentItem||b.element)[0]==this.element[0]){return}if(this.options.accept.call(this.element[0],(b.currentItem||b.element))){if(this.options.hoverClass){this.element.removeClass(this.options.hoverClass)}this._trigger(&quot;out&quot;,c,this.ui(b))}},_drop:function(c,d){var b=d||a.ui.ddmanager.current;if(!b||(b.currentItem||b.element)[0]==this.element[0]){return false}var e=false;this.element.find(&quot;:data(droppable)&quot;).not(&quot;.ui-draggable-dragging&quot;).each(function(){var f=a.data(this,&quot;droppable&quot;);if(f.options.greedy&amp;&amp;a.ui.intersect(b,a.extend(f,{offset:f.element.offset()}),f.options.tolerance)){e=true;return false}});if(e){return false}if(this.options.accept.call(this.element[0],(b.currentItem||b.element))){if(this.options.activeClass){this.element.removeClass(this.options.activeClass)}if(this.options.hoverClass){this.element.removeClass(this.options.hoverClass)}this._trigger(&quot;drop&quot;,c,this.ui(b));return this.element}return false},ui:function(b){return{draggable:(b.currentItem||b.element),helper:b.helper,position:b.position,absolutePosition:b.positionAbs,offset:b.positionAbs}}});a.extend(a.ui.droppable,{version:&quot;1.7.1&quot;,eventPrefix:&quot;drop&quot;,defaults:{accept:&quot;*&quot;,activeClass:false,addClasses:true,greedy:false,hoverClass:false,scope:&quot;default&quot;,tolerance:&quot;intersect&quot;}});a.ui.intersect=function(q,j,o){if(!j.offset){return false}var e=(q.positionAbs||q.position.absolute).left,d=e+q.helperProportions.width,n=(q.positionAbs||q.position.absolute).top,m=n+q.helperProportions.height;var g=j.offset.left,c=g+j.proportions.width,p=j.offset.top,k=p+j.proportions.height;switch(o){case&quot;fit&quot;:return(g&lt;e&amp;&amp;d&lt;c&amp;&amp;p&lt;n&amp;&amp;m&lt;k);break;case&quot;intersect&quot;:return(g&lt;e+(q.helperProportions.width/2)&amp;&amp;d-(q.helperProportions.width/2)&lt;c&amp;&amp;p&lt;n+(q.helperProportions.height/2)&amp;&amp;m-(q.helperProportions.height/2)&lt;k);break;case&quot;pointer&quot;:var h=((q.positionAbs||q.position.absolute).left+(q.clickOffset||q.offset.click).left),i=((q.positionAbs||q.position.absolute).top+(q.clickOffset||q.offset.click).top),f=a.ui.isOver(i,h,p,g,j.proportions.height,j.proportions.width);return f;break;case&quot;touch&quot;:return((n&gt;=p&amp;&amp;n&lt;=k)||(m&gt;=p&amp;&amp;m&lt;=k)||(n&lt;p&amp;&amp;m&gt;k))&amp;&amp;((e&gt;=g&amp;&amp;e&lt;=c)||(d&gt;=g&amp;&amp;d&lt;=c)||(e&lt;g&amp;&amp;d&gt;c));break;default:return false;break}};a.ui.ddmanager={current:null,droppables:{&quot;default&quot;:[]},prepareOffsets:function(e,g){var b=a.ui.ddmanager.droppables[e.options.scope];var f=g?g.type:null;var h=(e.currentItem||e.element).find(&quot;:data(droppable)&quot;).andSelf();droppablesLoop:for(var d=0;d&lt;b.length;d++){if(b[d].options.disabled||(e&amp;&amp;!b[d].options.accept.call(b[d].element[0],(e.currentItem||e.element)))){continue}for(var c=0;c&lt;h.length;c++){if(h[c]==b[d].element[0]){b[d].proportions.height=0;continue droppablesLoop}}b[d].visible=b[d].element.css(&quot;display&quot;)!=&quot;none&quot;;if(!b[d].visible){continue}b[d].offset=b[d].element.offset();b[d].proportions={width:b[d].element[0].offsetWidth,height:b[d].element[0].offsetHeight};if(f==&quot;mousedown&quot;){b[d]._activate.call(b[d],g)}}},drop:function(b,c){var d=false;a.each(a.ui.ddmanager.droppables[b.options.scope],function(){if(!this.options){return}if(!this.options.disabled&amp;&amp;this.visible&amp;&amp;a.ui.intersect(b,this,this.options.tolerance)){d=this._drop.call(this,c)}if(!this.options.disabled&amp;&amp;this.visible&amp;&amp;this.options.accept.call(this.element[0],(b.currentItem||b.element))){this.isout=1;this.isover=0;this._deactivate.call(this,c)}});return d},drag:function(b,c){if(b.options.refreshPositions){a.ui.ddmanager.prepareOffsets(b,c)}a.each(a.ui.ddmanager.droppables[b.options.scope],function(){if(this.options.disabled||this.greedyChild||!this.visible){return}var e=a.ui.intersect(b,this,this.options.tolerance);var g=!e&amp;&amp;this.isover==1?&quot;isout&quot;:(e&amp;&amp;this.isover==0?&quot;isover&quot;:null);if(!g){return}var f;if(this.options.greedy){var d=this.element.parents(&quot;:data(droppable):eq(0)&quot;);if(d.length){f=a.data(d[0],&quot;droppable&quot;);f.greedyChild=(g==&quot;isover&quot;?1:0)}}if(f&amp;&amp;g==&quot;isover&quot;){f.isover=0;f.isout=1;f._out.call(f,c)}this[g]=1;this[g==&quot;isout&quot;?&quot;isover&quot;:&quot;isout&quot;]=0;this[g==&quot;isover&quot;?&quot;_over&quot;:&quot;_out&quot;].call(this,c);if(f&amp;&amp;g==&quot;isout&quot;){f.isout=0;f.isover=1;f._over.call(f,c)}})}}})(jQuery);
</del><span class="cx">\ No newline at end of file
</span><ins>+(function(a){a.widget(&quot;ui.droppable&quot;,{_init:function(){var c=this.options,b=c.accept;this.isover=0;this.isout=1;this.options.accept=this.options.accept&amp;&amp;a.isFunction(this.options.accept)?this.options.accept:function(e){return e.is(b)};this.proportions={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight};a.ui.ddmanager.droppables[this.options.scope]=a.ui.ddmanager.droppables[this.options.scope]||[];a.ui.ddmanager.droppables[this.options.scope].push(this);(this.options.addClasses&amp;&amp;this.element.addClass(&quot;ui-droppable&quot;))},destroy:function(){var b=a.ui.ddmanager.droppables[this.options.scope];for(var c=0;c&lt;b.length;c++){if(b[c]==this){b.splice(c,1)}}this.element.removeClass(&quot;ui-droppable ui-droppable-disabled&quot;).removeData(&quot;droppable&quot;).unbind(&quot;.droppable&quot;)},_setData:function(b,c){if(b==&quot;accept&quot;){this.options.accept=c&amp;&amp;a.isFunction(c)?c:function(e){return e.is(c)}}else{a.widget.prototype._setData.apply(this,arguments)}},_activate:function(c){var b=a.ui.ddmanager.current;if(this.options.activeClass){this.element.addClass(this.options.activeClass)}(b&amp;&amp;this._trigger(&quot;activate&quot;,c,this.ui(b)))},_deactivate:function(c){var b=a.ui.ddmanager.current;if(this.options.activeClass){this.element.removeClass(this.options.activeClass)}(b&amp;&amp;this._trigger(&quot;deactivate&quot;,c,this.ui(b)))},_over:function(c){var b=a.ui.ddmanager.current;if(!b||(b.currentItem||b.element)[0]==this.element[0]){return}if(this.options.accept.call(this.element[0],(b.currentItem||b.element))){if(this.options.hoverClass){this.element.addClass(this.options.hoverClass)}this._trigger(&quot;over&quot;,c,this.ui(b))}},_out:function(c){var b=a.ui.ddmanager.current;if(!b||(b.currentItem||b.element)[0]==this.element[0]){return}if(this.options.accept.call(this.element[0],(b.currentItem||b.element))){if(this.options.hoverClass){this.element.removeClass(this.options.hoverClass)}this._trigger(&quot;out&quot;,c,this.ui(b))}},_drop:function(c,d){var b=d||a.ui.ddmanager.current;if(!b||(b.currentItem||b.element)[0]==this.element[0]){return false}var e=false;this.element.find(&quot;:data(droppable)&quot;).not(&quot;.ui-draggable-dragging&quot;).each(function(){var f=a.data(this,&quot;droppable&quot;);if(f.options.greedy&amp;&amp;a.ui.intersect(b,a.extend(f,{offset:f.element.offset()}),f.options.tolerance)){e=true;return false}});if(e){return false}if(this.options.accept.call(this.element[0],(b.currentItem||b.element))){if(this.options.activeClass){this.element.removeClass(this.options.activeClass)}if(this.options.hoverClass){this.element.removeClass(this.options.hoverClass)}this._trigger(&quot;drop&quot;,c,this.ui(b));return this.element}return false},ui:function(b){return{draggable:(b.currentItem||b.element),helper:b.helper,position:b.position,absolutePosition:b.positionAbs,offset:b.positionAbs}}});a.extend(a.ui.droppable,{version:&quot;1.7.2&quot;,eventPrefix:&quot;drop&quot;,defaults:{accept:&quot;*&quot;,activeClass:false,addClasses:true,greedy:false,hoverClass:false,scope:&quot;default&quot;,tolerance:&quot;intersect&quot;}});a.ui.intersect=function(q,j,o){if(!j.offset){return false}var e=(q.positionAbs||q.position.absolute).left,d=e+q.helperProportions.width,n=(q.positionAbs||q.position.absolute).top,m=n+q.helperProportions.height;var g=j.offset.left,c=g+j.proportions.width,p=j.offset.top,k=p+j.proportions.height;switch(o){case&quot;fit&quot;:return(g&lt;e&amp;&amp;d&lt;c&amp;&amp;p&lt;n&amp;&amp;m&lt;k);break;case&quot;intersect&quot;:return(g&lt;e+(q.helperProportions.width/2)&amp;&amp;d-(q.helperProportions.width/2)&lt;c&amp;&amp;p&lt;n+(q.helperProportions.height/2)&amp;&amp;m-(q.helperProportions.height/2)&lt;k);break;case&quot;pointer&quot;:var h=((q.positionAbs||q.position.absolute).left+(q.clickOffset||q.offset.click).left),i=((q.positionAbs||q.position.absolute).top+(q.clickOffset||q.offset.click).top),f=a.ui.isOver(i,h,p,g,j.proportions.height,j.proportions.width);return f;break;case&quot;touch&quot;:return((n&gt;=p&amp;&amp;n&lt;=k)||(m&gt;=p&amp;&amp;m&lt;=k)||(n&lt;p&amp;&amp;m&gt;k))&amp;&amp;((e&gt;=g&amp;&amp;e&lt;=c)||(d&gt;=g&amp;&amp;d&lt;=c)||(e&lt;g&amp;&amp;d&gt;c));break;default:return false;break}};a.ui.ddmanager={current:null,droppables:{&quot;default&quot;:[]},prepareOffsets:function(e,g){var b=a.ui.ddmanager.droppables[e.options.scope];var f=g?g.type:null;var h=(e.currentItem||e.element).find(&quot;:data(droppable)&quot;).andSelf();droppablesLoop:for(var d=0;d&lt;b.length;d++){if(b[d].options.disabled||(e&amp;&amp;!b[d].options.accept.call(b[d].element[0],(e.currentItem||e.element)))){continue}for(var c=0;c&lt;h.length;c++){if(h[c]==b[d].element[0]){b[d].proportions.height=0;continue droppablesLoop}}b[d].visible=b[d].element.css(&quot;display&quot;)!=&quot;none&quot;;if(!b[d].visible){continue}b[d].offset=b[d].element.offset();b[d].proportions={width:b[d].element[0].offsetWidth,height:b[d].element[0].offsetHeight};if(f==&quot;mousedown&quot;){b[d]._activate.call(b[d],g)}}},drop:function(b,c){var d=false;a.each(a.ui.ddmanager.droppables[b.options.scope],function(){if(!this.options){return}if(!this.options.disabled&amp;&amp;this.visible&amp;&amp;a.ui.intersect(b,this,this.options.tolerance)){d=this._drop.call(this,c)}if(!this.options.disabled&amp;&amp;this.visible&amp;&amp;this.options.accept.call(this.element[0],(b.currentItem||b.element))){this.isout=1;this.isover=0;this._deactivate.call(this,c)}});return d},drag:function(b,c){if(b.options.refreshPositions){a.ui.ddmanager.prepareOffsets(b,c)}a.each(a.ui.ddmanager.droppables[b.options.scope],function(){if(this.options.disabled||this.greedyChild||!this.visible){return}var e=a.ui.intersect(b,this,this.options.tolerance);var g=!e&amp;&amp;this.isover==1?&quot;isout&quot;:(e&amp;&amp;this.isover==0?&quot;isover&quot;:null);if(!g){return}var f;if(this.options.greedy){var d=this.element.parents(&quot;:data(droppable):eq(0)&quot;);if(d.length){f=a.data(d[0],&quot;droppable&quot;);f.greedyChild=(g==&quot;isover&quot;?1:0)}}if(f&amp;&amp;g==&quot;isover&quot;){f.isover=0;f.isout=1;f._out.call(f,c)}this[g]=1;this[g==&quot;isout&quot;?&quot;isover&quot;:&quot;isout&quot;]=0;this[g==&quot;isover&quot;?&quot;_over&quot;:&quot;_out&quot;].call(this,c);if(f&amp;&amp;g==&quot;isout&quot;){f.isout=0;f.isover=1;f._over.call(f,c)}})}}})(jQuery);
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkwpincludesjsjqueryuiresizablejs"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/js/jquery/ui.resizable.js (13200 => 13201)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/js/jquery/ui.resizable.js        2010-02-18 20:08:35 UTC (rev 13200)
+++ trunk/wp-includes/js/jquery/ui.resizable.js        2010-02-18 20:49:16 UTC (rev 13201)
</span><span class="lines">@@ -1,5 +1,5 @@
</span><span class="cx"> /*
</span><del>- * jQuery UI Resizable 1.7.1
</del><ins>+ * jQuery UI Resizable 1.7.2
</ins><span class="cx">  *
</span><span class="cx">  * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about)
</span><span class="cx">  * Dual licensed under the MIT (MIT-LICENSE.txt)
</span><span class="lines">@@ -10,4 +10,4 @@
</span><span class="cx">  * Depends:
</span><span class="cx">  *        ui.core.js
</span><span class="cx">  */
</span><del>-(function(c){c.widget(&quot;ui.resizable&quot;,c.extend({},c.ui.mouse,{_init:function(){var e=this,j=this.options;this.element.addClass(&quot;ui-resizable&quot;);c.extend(this,{_aspectRatio:!!(j.aspectRatio),aspectRatio:j.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:j.helper||j.ghost||j.animate?j.helper||&quot;ui-resizable-helper&quot;:null});if(this.element[0].nodeName.match(/canvas|textarea|input|select|button|img/i)){if(/relative/.test(this.element.css(&quot;position&quot;))&amp;&amp;c.browser.opera){this.element.css({position:&quot;relative&quot;,top:&quot;auto&quot;,left:&quot;auto&quot;})}this.element.wrap(c('&lt;div class=&quot;ui-wrapper&quot; style=&quot;overflow: hidden;&quot;&gt;&lt;/div&gt;').css({position:this.element.css(&quot;position&quot;),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css(&quot;top&quot;),left:this.element.css(&quot;left&quot;)}));this.element=this.element.parent().data(&quot;resizable&quot;,this.element.data(&quot;resizable&quot;));this.elementIsWrapper=true;this.element.css({marginLeft:this.originalElement.css(&quot;marginLeft&quot;),marginTop:this.originalElement.css(&quot;marginTop&quot;),marginRight:this.originalElement.css(&quot;marginRight&quot;),marginBottom:this.originalElement.css(&quot;marginBottom&quot;)});this.originalElement.css({marginLeft:0,marginTop:0,marginRight:0,marginBottom:0});this.originalResizeStyle=this.originalElement.css(&quot;resize&quot;);this.originalElement.css(&quot;resize&quot;,&quot;none&quot;);this._proportionallyResizeElements.push(this.originalElement.css({position:&quot;static&quot;,zoom:1,display:&quot;block&quot;}));this.originalElement.css({margin:this.originalElement.css(&quot;margin&quot;)});this._proportionallyResize()}this.handles=j.handles||(!c(&quot;.ui-resizable-handle&quot;,this.element).length?&quot;e,s,se&quot;:{n:&quot;.ui-resizable-n&quot;,e:&quot;.ui-resizable-e&quot;,s:&quot;.ui-resizable-s&quot;,w:&quot;.ui-resizable-w&quot;,se:&quot;.ui-resizable-se&quot;,sw:&quot;.ui-resizable-sw&quot;,ne:&quot;.ui-resizable-ne&quot;,nw:&quot;.ui-resizable-nw&quot;});if(this.handles.constructor==String){if(this.handles==&quot;all&quot;){this.handles=&quot;n,e,s,w,se,sw,ne,nw&quot;}var k=this.handles.split(&quot;,&quot;);this.handles={};for(var f=0;f&lt;k.length;f++){var h=c.trim(k[f]),d=&quot;ui-resizable-&quot;+h;var g=c('&lt;div class=&quot;ui-resizable-handle '+d+'&quot;&gt;&lt;/div&gt;');if(/sw|se|ne|nw/.test(h)){g.css({zIndex:++j.zIndex})}if(&quot;se&quot;==h){g.addClass(&quot;ui-icon ui-icon-gripsmall-diagonal-se&quot;)}this.handles[h]=&quot;.ui-resizable-&quot;+h;this.element.append(g)}}this._renderAxis=function(p){p=p||this.element;for(var m in this.handles){if(this.handles[m].constructor==String){this.handles[m]=c(this.handles[m],this.element).show()}if(this.elementIsWrapper&amp;&amp;this.originalElement[0].nodeName.match(/textarea|input|select|button/i)){var n=c(this.handles[m],this.element),o=0;o=/sw|ne|nw|se|n|s/.test(m)?n.outerHeight():n.outerWidth();var l=[&quot;padding&quot;,/ne|nw|n/.test(m)?&quot;Top&quot;:/se|sw|s/.test(m)?&quot;Bottom&quot;:/^e$/.test(m)?&quot;Right&quot;:&quot;Left&quot;].join(&quot;&quot;);p.css(l,o);this._proportionallyResize()}if(!c(this.handles[m]).length){continue}}};this._renderAxis(this.element);this._handles=c(&quot;.ui-resizable-handle&quot;,this.element).disableSelection();this._handles.mouseover(function(){if(!e.resizing){if(this.className){var i=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)}e.axis=i&amp;&amp;i[1]?i[1]:&quot;se&quot;}});if(j.autoHide){this._handles.hide();c(this.element).addClass(&quot;ui-resizable-autohide&quot;).hover(function(){c(this).removeClass(&quot;ui-resizable-autohide&quot;);e._handles.show()},function(){if(!e.resizing){c(this).addClass(&quot;ui-resizable-autohide&quot;);e._handles.hide()}})}this._mouseInit()},destroy:function(){this._mouseDestroy();var d=function(f){c(f).removeClass(&quot;ui-resizable ui-resizable-disabled ui-resizable-resizing&quot;).removeData(&quot;resizable&quot;).unbind(&quot;.resizable&quot;).find(&quot;.ui-resizable-handle&quot;).remove()};if(this.elementIsWrapper){d(this.element);var e=this.element;e.parent().append(this.originalElement.css({position:e.css(&quot;position&quot;),width:e.outerWidth(),height:e.outerHeight(),top:e.css(&quot;top&quot;),left:e.css(&quot;left&quot;)})).end().remove()}this.originalElement.css(&quot;resize&quot;,this.originalResizeStyle);d(this.originalElement)},_mouseCapture:function(e){var f=false;for(var d in this.handles){if(c(this.handles[d])[0]==e.target){f=true}}return this.options.disabled||!!f},_mouseStart:function(f){var i=this.options,e=this.element.position(),d=this.element;this.resizing=true;this.documentScroll={top:c(document).scrollTop(),left:c(document).scrollLeft()};if(d.is(&quot;.ui-draggable&quot;)||(/absolute/).test(d.css(&quot;position&quot;))){d.css({position:&quot;absolute&quot;,top:e.top,left:e.left})}if(c.browser.opera&amp;&amp;(/relative/).test(d.css(&quot;position&quot;))){d.css({position:&quot;relative&quot;,top:&quot;auto&quot;,left:&quot;auto&quot;})}this._renderProxy();var j=b(this.helper.css(&quot;left&quot;)),g=b(this.helper.css(&quot;top&quot;));if(i.containment){j+=c(i.containment).scrollLeft()||0;g+=c(i.containment).scrollTop()||0}this.offset=this.helper.offset();this.position={left:j,top:g};this.size=this._helper?{width:d.outerWidth(),height:d.outerHeight()}:{width:d.width(),height:d.height()};this.originalSize=this._helper?{width:d.outerWidth(),height:d.outerHeight()}:{width:d.width(),height:d.height()};this.originalPosition={left:j,top:g};this.sizeDiff={width:d.outerWidth()-d.width(),height:d.outerHeight()-d.height()};this.originalMousePosition={left:f.pageX,top:f.pageY};this.aspectRatio=(typeof i.aspectRatio==&quot;number&quot;)?i.aspectRatio:((this.originalSize.width/this.originalSize.height)||1);var h=c(&quot;.ui-resizable-&quot;+this.axis).css(&quot;cursor&quot;);c(&quot;body&quot;).css(&quot;cursor&quot;,h==&quot;auto&quot;?this.axis+&quot;-resize&quot;:h);d.addClass(&quot;ui-resizable-resizing&quot;);this._propagate(&quot;start&quot;,f);return true},_mouseDrag:function(d){var g=this.helper,f=this.options,l={},p=this,i=this.originalMousePosition,m=this.axis;var q=(d.pageX-i.left)||0,n=(d.pageY-i.top)||0;var h=this._change[m];if(!h){return false}var k=h.apply(this,[d,q,n]),j=c.browser.msie&amp;&amp;c.browser.version&lt;7,e=this.sizeDiff;if(this._aspectRatio||d.shiftKey){k=this._updateRatio(k,d)}k=this._respectSize(k,d);this._propagate(&quot;resize&quot;,d);g.css({top:this.position.top+&quot;px&quot;,left:this.position.left+&quot;px&quot;,width:this.size.width+&quot;px&quot;,height:this.size.height+&quot;px&quot;});if(!this._helper&amp;&amp;this._proportionallyResizeElements.length){this._proportionallyResize()}this._updateCache(k);this._trigger(&quot;resize&quot;,d,this.ui());return false},_mouseStop:function(g){this.resizing=false;var h=this.options,l=this;if(this._helper){var f=this._proportionallyResizeElements,d=f.length&amp;&amp;(/textarea/i).test(f[0].nodeName),e=d&amp;&amp;c.ui.hasScroll(f[0],&quot;left&quot;)?0:l.sizeDiff.height,j=d?0:l.sizeDiff.width;var m={width:(l.size.width-j),height:(l.size.height-e)},i=(parseInt(l.element.css(&quot;left&quot;),10)+(l.position.left-l.originalPosition.left))||null,k=(parseInt(l.element.css(&quot;top&quot;),10)+(l.position.top-l.originalPosition.top))||null;if(!h.animate){this.element.css(c.extend(m,{top:k,left:i}))}l.helper.height(l.size.height);l.helper.width(l.size.width);if(this._helper&amp;&amp;!h.animate){this._proportionallyResize()}}c(&quot;body&quot;).css(&quot;cursor&quot;,&quot;auto&quot;);this.element.removeClass(&quot;ui-resizable-resizing&quot;);this._propagate(&quot;stop&quot;,g);if(this._helper){this.helper.remove()}return false},_updateCache:function(d){var e=this.options;this.offset=this.helper.offset();if(a(d.left)){this.position.left=d.left}if(a(d.top)){this.position.top=d.top}if(a(d.height)){this.size.height=d.height}if(a(d.width)){this.size.width=d.width}},_updateRatio:function(g,f){var h=this.options,i=this.position,e=this.size,d=this.axis;if(g.height){g.width=(e.height*this.aspectRatio)}else{if(g.width){g.height=(e.width/this.aspectRatio)}}if(d==&quot;sw&quot;){g.left=i.left+(e.width-g.width);g.top=null}if(d==&quot;nw&quot;){g.top=i.top+(e.height-g.height);g.left=i.left+(e.width-g.width)}return g},_respectSize:function(k,f){var i=this.helper,h=this.options,q=this._aspectRatio||f.shiftKey,p=this.axis,s=a(k.width)&amp;&amp;h.maxWidth&amp;&amp;(h.maxWidth&lt;k.width),l=a(k.height)&amp;&amp;h.maxHeight&amp;&amp;(h.maxHeight&lt;k.height),g=a(k.width)&amp;&amp;h.minWidth&amp;&amp;(h.minWidth&gt;k.width),r=a(k.height)&amp;&amp;h.minHeight&amp;&amp;(h.minHeight&gt;k.height);if(g){k.width=h.minWidth}if(r){k.height=h.minHeight}if(s){k.width=h.maxWidth}if(l){k.height=h.maxHeight}var e=this.originalPosition.left+this.originalSize.width,n=this.position.top+this.size.height;var j=/sw|nw|w/.test(p),d=/nw|ne|n/.test(p);if(g&amp;&amp;j){k.left=e-h.minWidth}if(s&amp;&amp;j){k.left=e-h.maxWidth}if(r&amp;&amp;d){k.top=n-h.minHeight}if(l&amp;&amp;d){k.top=n-h.maxHeight}var m=!k.width&amp;&amp;!k.height;if(m&amp;&amp;!k.left&amp;&amp;k.top){k.top=null}else{if(m&amp;&amp;!k.top&amp;&amp;k.left){k.left=null}}return k},_proportionallyResize:function(){var j=this.options;if(!this._proportionallyResizeElements.length){return}var f=this.helper||this.element;for(var e=0;e&lt;this._proportionallyResizeElements.length;e++){var g=this._proportionallyResizeElements[e];if(!this.borderDif){var d=[g.css(&quot;borderTopWidth&quot;),g.css(&quot;borderRightWidth&quot;),g.css(&quot;borderBottomWidth&quot;),g.css(&quot;borderLeftWidth&quot;)],h=[g.css(&quot;paddingTop&quot;),g.css(&quot;paddingRight&quot;),g.css(&quot;paddingBottom&quot;),g.css(&quot;paddingLeft&quot;)];this.borderDif=c.map(d,function(k,m){var l=parseInt(k,10)||0,n=parseInt(h[m],10)||0;return l+n})}if(c.browser.msie&amp;&amp;!(!(c(f).is(&quot;:hidden&quot;)||c(f).parents(&quot;:hidden&quot;).length))){continue}g.css({height:(f.height()-this.borderDif[0]-this.borderDif[2])||0,width:(f.width()-this.borderDif[1]-this.borderDif[3])||0})}},_renderProxy:function(){var e=this.element,h=this.options;this.elementOffset=e.offset();if(this._helper){this.helper=this.helper||c('&lt;div style=&quot;overflow:hidden;&quot;&gt;&lt;/div&gt;');var d=c.browser.msie&amp;&amp;c.browser.version&lt;7,f=(d?1:0),g=(d?2:-1);this.helper.addClass(this._helper).css({width:this.element.outerWidth()+g,height:this.element.outerHeight()+g,position:&quot;absolute&quot;,left:this.elementOffset.left-f+&quot;px&quot;,top:this.elementOffset.top-f+&quot;px&quot;,zIndex:++h.zIndex});this.helper.appendTo(&quot;body&quot;).disableSelection()}else{this.helper=this.element}},_change:{e:function(f,e,d){return{width:this.originalSize.width+e}},w:function(g,e,d){var i=this.options,f=this.originalSize,h=this.originalPosition;return{left:h.left+e,width:f.width-e}},n:function(g,e,d){var i=this.options,f=this.originalSize,h=this.originalPosition;return{top:h.top+d,height:f.height-d}},s:function(f,e,d){return{height:this.originalSize.height+d}},se:function(f,e,d){return c.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[f,e,d]))},sw:function(f,e,d){return c.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[f,e,d]))},ne:function(f,e,d){return c.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[f,e,d]))},nw:function(f,e,d){return c.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[f,e,d]))}},_propagate:function(e,d){c.ui.plugin.call(this,e,[d,this.ui()]);(e!=&quot;resize&quot;&amp;&amp;this._trigger(e,d,this.ui()))},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}}));c.extend(c.ui.resizable,{version:&quot;1.7.1&quot;,eventPrefix:&quot;resize&quot;,defaults:{alsoResize:false,animate:false,animateDuration:&quot;slow&quot;,animateEasing:&quot;swing&quot;,aspectRatio:false,autoHide:false,cancel:&quot;:input,option&quot;,containment:false,delay:0,distance:1,ghost:false,grid:false,handles:&quot;e,s,se&quot;,helper:false,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:1000}});c.ui.plugin.add(&quot;resizable&quot;,&quot;alsoResize&quot;,{start:function(e,f){var d=c(this).data(&quot;resizable&quot;),g=d.options;_store=function(h){c(h).each(function(){c(this).data(&quot;resizable-alsoresize&quot;,{width:parseInt(c(this).width(),10),height:parseInt(c(this).height(),10),left:parseInt(c(this).css(&quot;left&quot;),10),top:parseInt(c(this).css(&quot;top&quot;),10)})})};if(typeof(g.alsoResize)==&quot;object&quot;&amp;&amp;!g.alsoResize.parentNode){if(g.alsoResize.length){g.alsoResize=g.alsoResize[0];_store(g.alsoResize)}else{c.each(g.alsoResize,function(h,i){_store(h)})}}else{_store(g.alsoResize)}},resize:function(f,h){var e=c(this).data(&quot;resizable&quot;),i=e.options,g=e.originalSize,k=e.originalPosition;var j={height:(e.size.height-g.height)||0,width:(e.size.width-g.width)||0,top:(e.position.top-k.top)||0,left:(e.position.left-k.left)||0},d=function(l,m){c(l).each(function(){var p=c(this),q=c(this).data(&quot;resizable-alsoresize&quot;),o={},n=m&amp;&amp;m.length?m:[&quot;width&quot;,&quot;height&quot;,&quot;top&quot;,&quot;left&quot;];c.each(n||[&quot;width&quot;,&quot;height&quot;,&quot;top&quot;,&quot;left&quot;],function(r,t){var s=(q[t]||0)+(j[t]||0);if(s&amp;&amp;s&gt;=0){o[t]=s||null}});if(/relative/.test(p.css(&quot;position&quot;))&amp;&amp;c.browser.opera){e._revertToRelativePosition=true;p.css({position:&quot;absolute&quot;,top:&quot;auto&quot;,left:&quot;auto&quot;})}p.css(o)})};if(typeof(i.alsoResize)==&quot;object&quot;&amp;&amp;!i.alsoResize.nodeType){c.each(i.alsoResize,function(l,m){d(l,m)})}else{d(i.alsoResize)}},stop:function(e,f){var d=c(this).data(&quot;resizable&quot;);if(d._revertToRelativePosition&amp;&amp;c.browser.opera){d._revertToRelativePosition=false;el.css({position:&quot;relative&quot;})}c(this).removeData(&quot;resizable-alsoresize-start&quot;)}});c.ui.plugin.add(&quot;resizable&quot;,&quot;animate&quot;,{stop:function(h,m){var n=c(this).data(&quot;resizable&quot;),i=n.options;var g=n._proportionallyResizeElements,d=g.length&amp;&amp;(/textarea/i).test(g[0].nodeName),e=d&amp;&amp;c.ui.hasScroll(g[0],&quot;left&quot;)?0:n.sizeDiff.height,k=d?0:n.sizeDiff.width;var f={width:(n.size.width-k),height:(n.size.height-e)},j=(parseInt(n.element.css(&quot;left&quot;),10)+(n.position.left-n.originalPosition.left))||null,l=(parseInt(n.element.css(&quot;top&quot;),10)+(n.position.top-n.originalPosition.top))||null;n.element.animate(c.extend(f,l&amp;&amp;j?{top:l,left:j}:{}),{duration:i.animateDuration,easing:i.animateEasing,step:function(){var o={width:parseInt(n.element.css(&quot;width&quot;),10),height:parseInt(n.element.css(&quot;height&quot;),10),top:parseInt(n.element.css(&quot;top&quot;),10),left:parseInt(n.element.css(&quot;left&quot;),10)};if(g&amp;&amp;g.length){c(g[0]).css({width:o.width,height:o.height})}n._updateCache(o);n._propagate(&quot;resize&quot;,h)}})}});c.ui.plugin.add(&quot;resizable&quot;,&quot;containment&quot;,{start:function(e,q){var s=c(this).data(&quot;resizable&quot;),i=s.options,k=s.element;var f=i.containment,j=(f instanceof c)?f.get(0):(/parent/.test(f))?k.parent().get(0):f;if(!j){return}s.containerElement=c(j);if(/document/.test(f)||f==document){s.containerOffset={left:0,top:0};s.containerPosition={left:0,top:0};s.parentData={element:c(document),left:0,top:0,width:c(document).width(),height:c(document).height()||document.body.parentNode.scrollHeight}}else{var m=c(j),h=[];c([&quot;Top&quot;,&quot;Right&quot;,&quot;Left&quot;,&quot;Bottom&quot;]).each(function(p,o){h[p]=b(m.css(&quot;padding&quot;+o))});s.containerOffset=m.offset();s.containerPosition=m.position();s.containerSize={height:(m.innerHeight()-h[3]),width:(m.innerWidth()-h[1])};var n=s.containerOffset,d=s.containerSize.height,l=s.containerSize.width,g=(c.ui.hasScroll(j,&quot;left&quot;)?j.scrollWidth:l),r=(c.ui.hasScroll(j)?j.scrollHeight:d);s.parentData={element:j,left:n.left,top:n.top,width:g,height:r}}},resize:function(f,p){var s=c(this).data(&quot;resizable&quot;),h=s.options,e=s.containerSize,n=s.containerOffset,l=s.size,m=s.position,q=s._aspectRatio||f.shiftKey,d={top:0,left:0},g=s.containerElement;if(g[0]!=document&amp;&amp;(/static/).test(g.css(&quot;position&quot;))){d=n}if(m.left&lt;(s._helper?n.left:0)){s.size.width=s.size.width+(s._helper?(s.position.left-n.left):(s.position.left-d.left));if(q){s.size.height=s.size.width/h.aspectRatio}s.position.left=h.helper?n.left:0}if(m.top&lt;(s._helper?n.top:0)){s.size.height=s.size.height+(s._helper?(s.position.top-n.top):s.position.top);if(q){s.size.width=s.size.height*h.aspectRatio}s.position.top=s._helper?n.top:0}s.offset.left=s.parentData.left+s.position.left;s.offset.top=s.parentData.top+s.position.top;var k=Math.abs((s._helper?s.offset.left-d.left:(s.offset.left-d.left))+s.sizeDiff.width),r=Math.abs((s._helper?s.offset.top-d.top:(s.offset.top-n.top))+s.sizeDiff.height);var j=s.containerElement.get(0)==s.element.parent().get(0),i=/relative|absolute/.test(s.containerElement.css(&quot;position&quot;));if(j&amp;&amp;i){k-=s.parentData.left}if(k+s.size.width&gt;=s.parentData.width){s.size.width=s.parentData.width-k;if(q){s.size.height=s.size.width/s.aspectRatio}}if(r+s.size.height&gt;=s.parentData.height){s.size.height=s.parentData.height-r;if(q){s.size.width=s.size.height*s.aspectRatio}}},stop:function(e,m){var p=c(this).data(&quot;resizable&quot;),f=p.options,k=p.position,l=p.containerOffset,d=p.containerPosition,g=p.containerElement;var i=c(p.helper),q=i.offset(),n=i.outerWidth()-p.sizeDiff.width,j=i.outerHeight()-p.sizeDiff.height;if(p._helper&amp;&amp;!f.animate&amp;&amp;(/relative/).test(g.css(&quot;position&quot;))){c(this).css({left:q.left-d.left-l.left,width:n,height:j})}if(p._helper&amp;&amp;!f.animate&amp;&amp;(/static/).test(g.css(&quot;position&quot;))){c(this).css({left:q.left-d.left-l.left,width:n,height:j})}}});c.ui.plugin.add(&quot;resizable&quot;,&quot;ghost&quot;,{start:function(f,g){var d=c(this).data(&quot;resizable&quot;),h=d.options,e=d.size;d.ghost=d.originalElement.clone();d.ghost.css({opacity:0.25,display:&quot;block&quot;,position:&quot;relative&quot;,height:e.height,width:e.width,margin:0,left:0,top:0}).addClass(&quot;ui-resizable-ghost&quot;).addClass(typeof h.ghost==&quot;string&quot;?h.ghost:&quot;&quot;);d.ghost.appendTo(d.helper)},resize:function(e,f){var d=c(this).data(&quot;resizable&quot;),g=d.options;if(d.ghost){d.ghost.css({position:&quot;relative&quot;,height:d.size.height,width:d.size.width})}},stop:function(e,f){var d=c(this).data(&quot;resizable&quot;),g=d.options;if(d.ghost&amp;&amp;d.helper){d.helper.get(0).removeChild(d.ghost.get(0))}}});c.ui.plugin.add(&quot;resizable&quot;,&quot;grid&quot;,{resize:function(d,l){var n=c(this).data(&quot;resizable&quot;),g=n.options,j=n.size,h=n.originalSize,i=n.originalPosition,m=n.axis,k=g._aspectRatio||d.shiftKey;g.grid=typeof g.grid==&quot;number&quot;?[g.grid,g.grid]:g.grid;var f=Math.round((j.width-h.width)/(g.grid[0]||1))*(g.grid[0]||1),e=Math.round((j.height-h.height)/(g.grid[1]||1))*(g.grid[1]||1);if(/^(se|s|e)$/.test(m)){n.size.width=h.width+f;n.size.height=h.height+e}else{if(/^(ne)$/.test(m)){n.size.width=h.width+f;n.size.height=h.height+e;n.position.top=i.top-e}else{if(/^(sw)$/.test(m)){n.size.width=h.width+f;n.size.height=h.height+e;n.position.left=i.left-f}else{n.size.width=h.width+f;n.size.height=h.height+e;n.position.top=i.top-e;n.position.left=i.left-f}}}}});var b=function(d){return parseInt(d,10)||0};var a=function(d){return !isNaN(parseInt(d,10))}})(jQuery);
</del><span class="cx">\ No newline at end of file
</span><ins>+(function(c){c.widget(&quot;ui.resizable&quot;,c.extend({},c.ui.mouse,{_init:function(){var e=this,j=this.options;this.element.addClass(&quot;ui-resizable&quot;);c.extend(this,{_aspectRatio:!!(j.aspectRatio),aspectRatio:j.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:j.helper||j.ghost||j.animate?j.helper||&quot;ui-resizable-helper&quot;:null});if(this.element[0].nodeName.match(/canvas|textarea|input|select|button|img/i)){if(/relative/.test(this.element.css(&quot;position&quot;))&amp;&amp;c.browser.opera){this.element.css({position:&quot;relative&quot;,top:&quot;auto&quot;,left:&quot;auto&quot;})}this.element.wrap(c('&lt;div class=&quot;ui-wrapper&quot; style=&quot;overflow: hidden;&quot;&gt;&lt;/div&gt;').css({position:this.element.css(&quot;position&quot;),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css(&quot;top&quot;),left:this.element.css(&quot;left&quot;)}));this.element=this.element.parent().data(&quot;resizable&quot;,this.element.data(&quot;resizable&quot;));this.elementIsWrapper=true;this.element.css({marginLeft:this.originalElement.css(&quot;marginLeft&quot;),marginTop:this.originalElement.css(&quot;marginTop&quot;),marginRight:this.originalElement.css(&quot;marginRight&quot;),marginBottom:this.originalElement.css(&quot;marginBottom&quot;)});this.originalElement.css({marginLeft:0,marginTop:0,marginRight:0,marginBottom:0});this.originalResizeStyle=this.originalElement.css(&quot;resize&quot;);this.originalElement.css(&quot;resize&quot;,&quot;none&quot;);this._proportionallyResizeElements.push(this.originalElement.css({position:&quot;static&quot;,zoom:1,display:&quot;block&quot;}));this.originalElement.css({margin:this.originalElement.css(&quot;margin&quot;)});this._proportionallyResize()}this.handles=j.handles||(!c(&quot;.ui-resizable-handle&quot;,this.element).length?&quot;e,s,se&quot;:{n:&quot;.ui-resizable-n&quot;,e:&quot;.ui-resizable-e&quot;,s:&quot;.ui-resizable-s&quot;,w:&quot;.ui-resizable-w&quot;,se:&quot;.ui-resizable-se&quot;,sw:&quot;.ui-resizable-sw&quot;,ne:&quot;.ui-resizable-ne&quot;,nw:&quot;.ui-resizable-nw&quot;});if(this.handles.constructor==String){if(this.handles==&quot;all&quot;){this.handles=&quot;n,e,s,w,se,sw,ne,nw&quot;}var k=this.handles.split(&quot;,&quot;);this.handles={};for(var f=0;f&lt;k.length;f++){var h=c.trim(k[f]),d=&quot;ui-resizable-&quot;+h;var g=c('&lt;div class=&quot;ui-resizable-handle '+d+'&quot;&gt;&lt;/div&gt;');if(/sw|se|ne|nw/.test(h)){g.css({zIndex:++j.zIndex})}if(&quot;se&quot;==h){g.addClass(&quot;ui-icon ui-icon-gripsmall-diagonal-se&quot;)}this.handles[h]=&quot;.ui-resizable-&quot;+h;this.element.append(g)}}this._renderAxis=function(p){p=p||this.element;for(var m in this.handles){if(this.handles[m].constructor==String){this.handles[m]=c(this.handles[m],this.element).show()}if(this.elementIsWrapper&amp;&amp;this.originalElement[0].nodeName.match(/textarea|input|select|button/i)){var n=c(this.handles[m],this.element),o=0;o=/sw|ne|nw|se|n|s/.test(m)?n.outerHeight():n.outerWidth();var l=[&quot;padding&quot;,/ne|nw|n/.test(m)?&quot;Top&quot;:/se|sw|s/.test(m)?&quot;Bottom&quot;:/^e$/.test(m)?&quot;Right&quot;:&quot;Left&quot;].join(&quot;&quot;);p.css(l,o);this._proportionallyResize()}if(!c(this.handles[m]).length){continue}}};this._renderAxis(this.element);this._handles=c(&quot;.ui-resizable-handle&quot;,this.element).disableSelection();this._handles.mouseover(function(){if(!e.resizing){if(this.className){var i=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)}e.axis=i&amp;&amp;i[1]?i[1]:&quot;se&quot;}});if(j.autoHide){this._handles.hide();c(this.element).addClass(&quot;ui-resizable-autohide&quot;).hover(function(){c(this).removeClass(&quot;ui-resizable-autohide&quot;);e._handles.show()},function(){if(!e.resizing){c(this).addClass(&quot;ui-resizable-autohide&quot;);e._handles.hide()}})}this._mouseInit()},destroy:function(){this._mouseDestroy();var d=function(f){c(f).removeClass(&quot;ui-resizable ui-resizable-disabled ui-resizable-resizing&quot;).removeData(&quot;resizable&quot;).unbind(&quot;.resizable&quot;).find(&quot;.ui-resizable-handle&quot;).remove()};if(this.elementIsWrapper){d(this.element);var e=this.element;e.parent().append(this.originalElement.css({position:e.css(&quot;position&quot;),width:e.outerWidth(),height:e.outerHeight(),top:e.css(&quot;top&quot;),left:e.css(&quot;left&quot;)})).end().remove()}this.originalElement.css(&quot;resize&quot;,this.originalResizeStyle);d(this.originalElement)},_mouseCapture:function(e){var f=false;for(var d in this.handles){if(c(this.handles[d])[0]==e.target){f=true}}return this.options.disabled||!!f},_mouseStart:function(f){var i=this.options,e=this.element.position(),d=this.element;this.resizing=true;this.documentScroll={top:c(document).scrollTop(),left:c(document).scrollLeft()};if(d.is(&quot;.ui-draggable&quot;)||(/absolute/).test(d.css(&quot;position&quot;))){d.css({position:&quot;absolute&quot;,top:e.top,left:e.left})}if(c.browser.opera&amp;&amp;(/relative/).test(d.css(&quot;position&quot;))){d.css({position:&quot;relative&quot;,top:&quot;auto&quot;,left:&quot;auto&quot;})}this._renderProxy();var j=b(this.helper.css(&quot;left&quot;)),g=b(this.helper.css(&quot;top&quot;));if(i.containment){j+=c(i.containment).scrollLeft()||0;g+=c(i.containment).scrollTop()||0}this.offset=this.helper.offset();this.position={left:j,top:g};this.size=this._helper?{width:d.outerWidth(),height:d.outerHeight()}:{width:d.width(),height:d.height()};this.originalSize=this._helper?{width:d.outerWidth(),height:d.outerHeight()}:{width:d.width(),height:d.height()};this.originalPosition={left:j,top:g};this.sizeDiff={width:d.outerWidth()-d.width(),height:d.outerHeight()-d.height()};this.originalMousePosition={left:f.pageX,top:f.pageY};this.aspectRatio=(typeof i.aspectRatio==&quot;number&quot;)?i.aspectRatio:((this.originalSize.width/this.originalSize.height)||1);var h=c(&quot;.ui-resizable-&quot;+this.axis).css(&quot;cursor&quot;);c(&quot;body&quot;).css(&quot;cursor&quot;,h==&quot;auto&quot;?this.axis+&quot;-resize&quot;:h);d.addClass(&quot;ui-resizable-resizing&quot;);this._propagate(&quot;start&quot;,f);return true},_mouseDrag:function(d){var g=this.helper,f=this.options,l={},p=this,i=this.originalMousePosition,m=this.axis;var q=(d.pageX-i.left)||0,n=(d.pageY-i.top)||0;var h=this._change[m];if(!h){return false}var k=h.apply(this,[d,q,n]),j=c.browser.msie&amp;&amp;c.browser.version&lt;7,e=this.sizeDiff;if(this._aspectRatio||d.shiftKey){k=this._updateRatio(k,d)}k=this._respectSize(k,d);this._propagate(&quot;resize&quot;,d);g.css({top:this.position.top+&quot;px&quot;,left:this.position.left+&quot;px&quot;,width:this.size.width+&quot;px&quot;,height:this.size.height+&quot;px&quot;});if(!this._helper&amp;&amp;this._proportionallyResizeElements.length){this._proportionallyResize()}this._updateCache(k);this._trigger(&quot;resize&quot;,d,this.ui());return false},_mouseStop:function(g){this.resizing=false;var h=this.options,l=this;if(this._helper){var f=this._proportionallyResizeElements,d=f.length&amp;&amp;(/textarea/i).test(f[0].nodeName),e=d&amp;&amp;c.ui.hasScroll(f[0],&quot;left&quot;)?0:l.sizeDiff.height,j=d?0:l.sizeDiff.width;var m={width:(l.size.width-j),height:(l.size.height-e)},i=(parseInt(l.element.css(&quot;left&quot;),10)+(l.position.left-l.originalPosition.left))||null,k=(parseInt(l.element.css(&quot;top&quot;),10)+(l.position.top-l.originalPosition.top))||null;if(!h.animate){this.element.css(c.extend(m,{top:k,left:i}))}l.helper.height(l.size.height);l.helper.width(l.size.width);if(this._helper&amp;&amp;!h.animate){this._proportionallyResize()}}c(&quot;body&quot;).css(&quot;cursor&quot;,&quot;auto&quot;);this.element.removeClass(&quot;ui-resizable-resizing&quot;);this._propagate(&quot;stop&quot;,g);if(this._helper){this.helper.remove()}return false},_updateCache:function(d){var e=this.options;this.offset=this.helper.offset();if(a(d.left)){this.position.left=d.left}if(a(d.top)){this.position.top=d.top}if(a(d.height)){this.size.height=d.height}if(a(d.width)){this.size.width=d.width}},_updateRatio:function(g,f){var h=this.options,i=this.position,e=this.size,d=this.axis;if(g.height){g.width=(e.height*this.aspectRatio)}else{if(g.width){g.height=(e.width/this.aspectRatio)}}if(d==&quot;sw&quot;){g.left=i.left+(e.width-g.width);g.top=null}if(d==&quot;nw&quot;){g.top=i.top+(e.height-g.height);g.left=i.left+(e.width-g.width)}return g},_respectSize:function(k,f){var i=this.helper,h=this.options,q=this._aspectRatio||f.shiftKey,p=this.axis,s=a(k.width)&amp;&amp;h.maxWidth&amp;&amp;(h.maxWidth&lt;k.width),l=a(k.height)&amp;&amp;h.maxHeight&amp;&amp;(h.maxHeight&lt;k.height),g=a(k.width)&amp;&amp;h.minWidth&amp;&amp;(h.minWidth&gt;k.width),r=a(k.height)&amp;&amp;h.minHeight&amp;&amp;(h.minHeight&gt;k.height);if(g){k.width=h.minWidth}if(r){k.height=h.minHeight}if(s){k.width=h.maxWidth}if(l){k.height=h.maxHeight}var e=this.originalPosition.left+this.originalSize.width,n=this.position.top+this.size.height;var j=/sw|nw|w/.test(p),d=/nw|ne|n/.test(p);if(g&amp;&amp;j){k.left=e-h.minWidth}if(s&amp;&amp;j){k.left=e-h.maxWidth}if(r&amp;&amp;d){k.top=n-h.minHeight}if(l&amp;&amp;d){k.top=n-h.maxHeight}var m=!k.width&amp;&amp;!k.height;if(m&amp;&amp;!k.left&amp;&amp;k.top){k.top=null}else{if(m&amp;&amp;!k.top&amp;&amp;k.left){k.left=null}}return k},_proportionallyResize:function(){var j=this.options;if(!this._proportionallyResizeElements.length){return}var f=this.helper||this.element;for(var e=0;e&lt;this._proportionallyResizeElements.length;e++){var g=this._proportionallyResizeElements[e];if(!this.borderDif){var d=[g.css(&quot;borderTopWidth&quot;),g.css(&quot;borderRightWidth&quot;),g.css(&quot;borderBottomWidth&quot;),g.css(&quot;borderLeftWidth&quot;)],h=[g.css(&quot;paddingTop&quot;),g.css(&quot;paddingRight&quot;),g.css(&quot;paddingBottom&quot;),g.css(&quot;paddingLeft&quot;)];this.borderDif=c.map(d,function(k,m){var l=parseInt(k,10)||0,n=parseInt(h[m],10)||0;return l+n})}if(c.browser.msie&amp;&amp;!(!(c(f).is(&quot;:hidden&quot;)||c(f).parents(&quot;:hidden&quot;).length))){continue}g.css({height:(f.height()-this.borderDif[0]-this.borderDif[2])||0,width:(f.width()-this.borderDif[1]-this.borderDif[3])||0})}},_renderProxy:function(){var e=this.element,h=this.options;this.elementOffset=e.offset();if(this._helper){this.helper=this.helper||c('&lt;div style=&quot;overflow:hidden;&quot;&gt;&lt;/div&gt;');var d=c.browser.msie&amp;&amp;c.browser.version&lt;7,f=(d?1:0),g=(d?2:-1);this.helper.addClass(this._helper).css({width:this.element.outerWidth()+g,height:this.element.outerHeight()+g,position:&quot;absolute&quot;,left:this.elementOffset.left-f+&quot;px&quot;,top:this.elementOffset.top-f+&quot;px&quot;,zIndex:++h.zIndex});this.helper.appendTo(&quot;body&quot;).disableSelection()}else{this.helper=this.element}},_change:{e:function(f,e,d){return{width:this.originalSize.width+e}},w:function(g,e,d){var i=this.options,f=this.originalSize,h=this.originalPosition;return{left:h.left+e,width:f.width-e}},n:function(g,e,d){var i=this.options,f=this.originalSize,h=this.originalPosition;return{top:h.top+d,height:f.height-d}},s:function(f,e,d){return{height:this.originalSize.height+d}},se:function(f,e,d){return c.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[f,e,d]))},sw:function(f,e,d){return c.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[f,e,d]))},ne:function(f,e,d){return c.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[f,e,d]))},nw:function(f,e,d){return c.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[f,e,d]))}},_propagate:function(e,d){c.ui.plugin.call(this,e,[d,this.ui()]);(e!=&quot;resize&quot;&amp;&amp;this._trigger(e,d,this.ui()))},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}}));c.extend(c.ui.resizable,{version:&quot;1.7.2&quot;,eventPrefix:&quot;resize&quot;,defaults:{alsoResize:false,animate:false,animateDuration:&quot;slow&quot;,animateEasing:&quot;swing&quot;,aspectRatio:false,autoHide:false,cancel:&quot;:input,option&quot;,containment:false,delay:0,distance:1,ghost:false,grid:false,handles:&quot;e,s,se&quot;,helper:false,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:1000}});c.ui.plugin.add(&quot;resizable&quot;,&quot;alsoResize&quot;,{start:function(e,f){var d=c(this).data(&quot;resizable&quot;),g=d.options;_store=function(h){c(h).each(function(){c(this).data(&quot;resizable-alsoresize&quot;,{width:parseInt(c(this).width(),10),height:parseInt(c(this).height(),10),left:parseInt(c(this).css(&quot;left&quot;),10),top:parseInt(c(this).css(&quot;top&quot;),10)})})};if(typeof(g.alsoResize)==&quot;object&quot;&amp;&amp;!g.alsoResize.parentNode){if(g.alsoResize.length){g.alsoResize=g.alsoResize[0];_store(g.alsoResize)}else{c.each(g.alsoResize,function(h,i){_store(h)})}}else{_store(g.alsoResize)}},resize:function(f,h){var e=c(this).data(&quot;resizable&quot;),i=e.options,g=e.originalSize,k=e.originalPosition;var j={height:(e.size.height-g.height)||0,width:(e.size.width-g.width)||0,top:(e.position.top-k.top)||0,left:(e.position.left-k.left)||0},d=function(l,m){c(l).each(function(){var p=c(this),q=c(this).data(&quot;resizable-alsoresize&quot;),o={},n=m&amp;&amp;m.length?m:[&quot;width&quot;,&quot;height&quot;,&quot;top&quot;,&quot;left&quot;];c.each(n||[&quot;width&quot;,&quot;height&quot;,&quot;top&quot;,&quot;left&quot;],function(r,t){var s=(q[t]||0)+(j[t]||0);if(s&amp;&amp;s&gt;=0){o[t]=s||null}});if(/relative/.test(p.css(&quot;position&quot;))&amp;&amp;c.browser.opera){e._revertToRelativePosition=true;p.css({position:&quot;absolute&quot;,top:&quot;auto&quot;,left:&quot;auto&quot;})}p.css(o)})};if(typeof(i.alsoResize)==&quot;object&quot;&amp;&amp;!i.alsoResize.nodeType){c.each(i.alsoResize,function(l,m){d(l,m)})}else{d(i.alsoResize)}},stop:function(e,f){var d=c(this).data(&quot;resizable&quot;);if(d._revertToRelativePosition&amp;&amp;c.browser.opera){d._revertToRelativePosition=false;el.css({position:&quot;relative&quot;})}c(this).removeData(&quot;resizable-alsoresize-start&quot;)}});c.ui.plugin.add(&quot;resizable&quot;,&quot;animate&quot;,{stop:function(h,m){var n=c(this).data(&quot;resizable&quot;),i=n.options;var g=n._proportionallyResizeElements,d=g.length&amp;&amp;(/textarea/i).test(g[0].nodeName),e=d&amp;&amp;c.ui.hasScroll(g[0],&quot;left&quot;)?0:n.sizeDiff.height,k=d?0:n.sizeDiff.width;var f={width:(n.size.width-k),height:(n.size.height-e)},j=(parseInt(n.element.css(&quot;left&quot;),10)+(n.position.left-n.originalPosition.left))||null,l=(parseInt(n.element.css(&quot;top&quot;),10)+(n.position.top-n.originalPosition.top))||null;n.element.animate(c.extend(f,l&amp;&amp;j?{top:l,left:j}:{}),{duration:i.animateDuration,easing:i.animateEasing,step:function(){var o={width:parseInt(n.element.css(&quot;width&quot;),10),height:parseInt(n.element.css(&quot;height&quot;),10),top:parseInt(n.element.css(&quot;top&quot;),10),left:parseInt(n.element.css(&quot;left&quot;),10)};if(g&amp;&amp;g.length){c(g[0]).css({width:o.width,height:o.height})}n._updateCache(o);n._propagate(&quot;resize&quot;,h)}})}});c.ui.plugin.add(&quot;resizable&quot;,&quot;containment&quot;,{start:function(e,q){var s=c(this).data(&quot;resizable&quot;),i=s.options,k=s.element;var f=i.containment,j=(f instanceof c)?f.get(0):(/parent/.test(f))?k.parent().get(0):f;if(!j){return}s.containerElement=c(j);if(/document/.test(f)||f==document){s.containerOffset={left:0,top:0};s.containerPosition={left:0,top:0};s.parentData={element:c(document),left:0,top:0,width:c(document).width(),height:c(document).height()||document.body.parentNode.scrollHeight}}else{var m=c(j),h=[];c([&quot;Top&quot;,&quot;Right&quot;,&quot;Left&quot;,&quot;Bottom&quot;]).each(function(p,o){h[p]=b(m.css(&quot;padding&quot;+o))});s.containerOffset=m.offset();s.containerPosition=m.position();s.containerSize={height:(m.innerHeight()-h[3]),width:(m.innerWidth()-h[1])};var n=s.containerOffset,d=s.containerSize.height,l=s.containerSize.width,g=(c.ui.hasScroll(j,&quot;left&quot;)?j.scrollWidth:l),r=(c.ui.hasScroll(j)?j.scrollHeight:d);s.parentData={element:j,left:n.left,top:n.top,width:g,height:r}}},resize:function(f,p){var s=c(this).data(&quot;resizable&quot;),h=s.options,e=s.containerSize,n=s.containerOffset,l=s.size,m=s.position,q=s._aspectRatio||f.shiftKey,d={top:0,left:0},g=s.containerElement;if(g[0]!=document&amp;&amp;(/static/).test(g.css(&quot;position&quot;))){d=n}if(m.left&lt;(s._helper?n.left:0)){s.size.width=s.size.width+(s._helper?(s.position.left-n.left):(s.position.left-d.left));if(q){s.size.height=s.size.width/h.aspectRatio}s.position.left=h.helper?n.left:0}if(m.top&lt;(s._helper?n.top:0)){s.size.height=s.size.height+(s._helper?(s.position.top-n.top):s.position.top);if(q){s.size.width=s.size.height*h.aspectRatio}s.position.top=s._helper?n.top:0}s.offset.left=s.parentData.left+s.position.left;s.offset.top=s.parentData.top+s.position.top;var k=Math.abs((s._helper?s.offset.left-d.left:(s.offset.left-d.left))+s.sizeDiff.width),r=Math.abs((s._helper?s.offset.top-d.top:(s.offset.top-n.top))+s.sizeDiff.height);var j=s.containerElement.get(0)==s.element.parent().get(0),i=/relative|absolute/.test(s.containerElement.css(&quot;position&quot;));if(j&amp;&amp;i){k-=s.parentData.left}if(k+s.size.width&gt;=s.parentData.width){s.size.width=s.parentData.width-k;if(q){s.size.height=s.size.width/s.aspectRatio}}if(r+s.size.height&gt;=s.parentData.height){s.size.height=s.parentData.height-r;if(q){s.size.width=s.size.height*s.aspectRatio}}},stop:function(e,m){var p=c(this).data(&quot;resizable&quot;),f=p.options,k=p.position,l=p.containerOffset,d=p.containerPosition,g=p.containerElement;var i=c(p.helper),q=i.offset(),n=i.outerWidth()-p.sizeDiff.width,j=i.outerHeight()-p.sizeDiff.height;if(p._helper&amp;&amp;!f.animate&amp;&amp;(/relative/).test(g.css(&quot;position&quot;))){c(this).css({left:q.left-d.left-l.left,width:n,height:j})}if(p._helper&amp;&amp;!f.animate&amp;&amp;(/static/).test(g.css(&quot;position&quot;))){c(this).css({left:q.left-d.left-l.left,width:n,height:j})}}});c.ui.plugin.add(&quot;resizable&quot;,&quot;ghost&quot;,{start:function(f,g){var d=c(this).data(&quot;resizable&quot;),h=d.options,e=d.size;d.ghost=d.originalElement.clone();d.ghost.css({opacity:0.25,display:&quot;block&quot;,position:&quot;relative&quot;,height:e.height,width:e.width,margin:0,left:0,top:0}).addClass(&quot;ui-resizable-ghost&quot;).addClass(typeof h.ghost==&quot;string&quot;?h.ghost:&quot;&quot;);d.ghost.appendTo(d.helper)},resize:function(e,f){var d=c(this).data(&quot;resizable&quot;),g=d.options;if(d.ghost){d.ghost.css({position:&quot;relative&quot;,height:d.size.height,width:d.size.width})}},stop:function(e,f){var d=c(this).data(&quot;resizable&quot;),g=d.options;if(d.ghost&amp;&amp;d.helper){d.helper.get(0).removeChild(d.ghost.get(0))}}});c.ui.plugin.add(&quot;resizable&quot;,&quot;grid&quot;,{resize:function(d,l){var n=c(this).data(&quot;resizable&quot;),g=n.options,j=n.size,h=n.originalSize,i=n.originalPosition,m=n.axis,k=g._aspectRatio||d.shiftKey;g.grid=typeof g.grid==&quot;number&quot;?[g.grid,g.grid]:g.grid;var f=Math.round((j.width-h.width)/(g.grid[0]||1))*(g.grid[0]||1),e=Math.round((j.height-h.height)/(g.grid[1]||1))*(g.grid[1]||1);if(/^(se|s|e)$/.test(m)){n.size.width=h.width+f;n.size.height=h.height+e}else{if(/^(ne)$/.test(m)){n.size.width=h.width+f;n.size.height=h.height+e;n.position.top=i.top-e}else{if(/^(sw)$/.test(m)){n.size.width=h.width+f;n.size.height=h.height+e;n.position.left=i.left-f}else{n.size.width=h.width+f;n.size.height=h.height+e;n.position.top=i.top-e;n.position.left=i.left-f}}}}});var b=function(d){return parseInt(d,10)||0};var a=function(d){return !isNaN(parseInt(d,10))}})(jQuery);
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkwpincludesjsjqueryuisortablejs"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/js/jquery/ui.sortable.js (13200 => 13201)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/js/jquery/ui.sortable.js        2010-02-18 20:08:35 UTC (rev 13200)
+++ trunk/wp-includes/js/jquery/ui.sortable.js        2010-02-18 20:49:16 UTC (rev 13201)
</span><span class="lines">@@ -1,5 +1,5 @@
</span><span class="cx"> /*
</span><del>- * jQuery UI Sortable 1.7.1
</del><ins>+ * jQuery UI Sortable 1.7.2
</ins><span class="cx">  *
</span><span class="cx">  * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about)
</span><span class="cx">  * Dual licensed under the MIT (MIT-LICENSE.txt)
</span><span class="lines">@@ -10,4 +10,4 @@
</span><span class="cx">  * Depends:
</span><span class="cx">  *        ui.core.js
</span><span class="cx">  */
</span><del>-(function(a){a.widget(&quot;ui.sortable&quot;,a.extend({},a.ui.mouse,{_init:function(){var b=this.options;this.containerCache={};this.element.addClass(&quot;ui-sortable&quot;);this.refresh();this.floating=this.items.length?(/left|right/).test(this.items[0].item.css(&quot;float&quot;)):false;this.offset=this.element.offset();this._mouseInit()},destroy:function(){this.element.removeClass(&quot;ui-sortable ui-sortable-disabled&quot;).removeData(&quot;sortable&quot;).unbind(&quot;.sortable&quot;);this._mouseDestroy();for(var b=this.items.length-1;b&gt;=0;b--){this.items[b].item.removeData(&quot;sortable-item&quot;)}},_mouseCapture:function(e,f){if(this.reverting){return false}if(this.options.disabled||this.options.type==&quot;static&quot;){return false}this._refreshItems(e);var d=null,c=this,b=a(e.target).parents().each(function(){if(a.data(this,&quot;sortable-item&quot;)==c){d=a(this);return false}});if(a.data(e.target,&quot;sortable-item&quot;)==c){d=a(e.target)}if(!d){return false}if(this.options.handle&amp;&amp;!f){var g=false;a(this.options.handle,d).find(&quot;*&quot;).andSelf().each(function(){if(this==e.target){g=true}});if(!g){return false}}this.currentItem=d;this._removeCurrentsFromItems();return true},_mouseStart:function(e,f,b){var g=this.options,c=this;this.currentContainer=this;this.refreshPositions();this.helper=this._createHelper(e);this._cacheHelperProportions();this._cacheMargins();this.scrollParent=this.helper.scrollParent();this.offset=this.currentItem.offset();this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left};this.helper.css(&quot;position&quot;,&quot;absolute&quot;);this.cssPosition=this.helper.css(&quot;position&quot;);a.extend(this.offset,{click:{left:e.pageX-this.offset.left,top:e.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.originalPosition=this._generatePosition(e);this.originalPageX=e.pageX;this.originalPageY=e.pageY;if(g.cursorAt){this._adjustOffsetFromHelper(g.cursorAt)}this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]};if(this.helper[0]!=this.currentItem[0]){this.currentItem.hide()}this._createPlaceholder();if(g.containment){this._setContainment()}if(g.cursor){if(a(&quot;body&quot;).css(&quot;cursor&quot;)){this._storedCursor=a(&quot;body&quot;).css(&quot;cursor&quot;)}a(&quot;body&quot;).css(&quot;cursor&quot;,g.cursor)}if(g.opacity){if(this.helper.css(&quot;opacity&quot;)){this._storedOpacity=this.helper.css(&quot;opacity&quot;)}this.helper.css(&quot;opacity&quot;,g.opacity)}if(g.zIndex){if(this.helper.css(&quot;zIndex&quot;)){this._storedZIndex=this.helper.css(&quot;zIndex&quot;)}this.helper.css(&quot;zIndex&quot;,g.zIndex)}if(this.scrollParent[0]!=document&amp;&amp;this.scrollParent[0].tagName!=&quot;HTML&quot;){this.overflowOffset=this.scrollParent.offset()}this._trigger(&quot;start&quot;,e,this._uiHash());if(!this._preserveHelperProportions){this._cacheHelperProportions()}if(!b){for(var d=this.containers.length-1;d&gt;=0;d--){this.containers[d]._trigger(&quot;activate&quot;,e,c._uiHash(this))}}if(a.ui.ddmanager){a.ui.ddmanager.current=this}if(a.ui.ddmanager&amp;&amp;!g.dropBehaviour){a.ui.ddmanager.prepareOffsets(this,e)}this.dragging=true;this.helper.addClass(&quot;ui-sortable-helper&quot;);this._mouseDrag(e);return true},_mouseDrag:function(f){this.position=this._generatePosition(f);this.positionAbs=this._convertPositionTo(&quot;absolute&quot;);if(!this.lastPositionAbs){this.lastPositionAbs=this.positionAbs}if(this.options.scroll){var g=this.options,b=false;if(this.scrollParent[0]!=document&amp;&amp;this.scrollParent[0].tagName!=&quot;HTML&quot;){if((this.overflowOffset.top+this.scrollParent[0].offsetHeight)-f.pageY&lt;g.scrollSensitivity){this.scrollParent[0].scrollTop=b=this.scrollParent[0].scrollTop+g.scrollSpeed}else{if(f.pageY-this.overflowOffset.top&lt;g.scrollSensitivity){this.scrollParent[0].scrollTop=b=this.scrollParent[0].scrollTop-g.scrollSpeed}}if((this.overflowOffset.left+this.scrollParent[0].offsetWidth)-f.pageX&lt;g.scrollSensitivity){this.scrollParent[0].scrollLeft=b=this.scrollParent[0].scrollLeft+g.scrollSpeed}else{if(f.pageX-this.overflowOffset.left&lt;g.scrollSensitivity){this.scrollParent[0].scrollLeft=b=this.scrollParent[0].scrollLeft-g.scrollSpeed}}}else{if(f.pageY-a(document).scrollTop()&lt;g.scrollSensitivity){b=a(document).scrollTop(a(document).scrollTop()-g.scrollSpeed)}else{if(a(window).height()-(f.pageY-a(document).scrollTop())&lt;g.scrollSensitivity){b=a(document).scrollTop(a(document).scrollTop()+g.scrollSpeed)}}if(f.pageX-a(document).scrollLeft()&lt;g.scrollSensitivity){b=a(document).scrollLeft(a(document).scrollLeft()-g.scrollSpeed)}else{if(a(window).width()-(f.pageX-a(document).scrollLeft())&lt;g.scrollSensitivity){b=a(document).scrollLeft(a(document).scrollLeft()+g.scrollSpeed)}}}if(b!==false&amp;&amp;a.ui.ddmanager&amp;&amp;!g.dropBehaviour){a.ui.ddmanager.prepareOffsets(this,f)}}this.positionAbs=this._convertPositionTo(&quot;absolute&quot;);if(!this.options.axis||this.options.axis!=&quot;y&quot;){this.helper[0].style.left=this.position.left+&quot;px&quot;}if(!this.options.axis||this.options.axis!=&quot;x&quot;){this.helper[0].style.top=this.position.top+&quot;px&quot;}for(var d=this.items.length-1;d&gt;=0;d--){var e=this.items[d],c=e.item[0],h=this._intersectsWithPointer(e);if(!h){continue}if(c!=this.currentItem[0]&amp;&amp;this.placeholder[h==1?&quot;next&quot;:&quot;prev&quot;]()[0]!=c&amp;&amp;!a.ui.contains(this.placeholder[0],c)&amp;&amp;(this.options.type==&quot;semi-dynamic&quot;?!a.ui.contains(this.element[0],c):true)){this.direction=h==1?&quot;down&quot;:&quot;up&quot;;if(this.options.tolerance==&quot;pointer&quot;||this._intersectsWithSides(e)){this._rearrange(f,e)}else{break}this._trigger(&quot;change&quot;,f,this._uiHash());break}}this._contactContainers(f);if(a.ui.ddmanager){a.ui.ddmanager.drag(this,f)}this._trigger(&quot;sort&quot;,f,this._uiHash());this.lastPositionAbs=this.positionAbs;return false},_mouseStop:function(c,d){if(!c){return}if(a.ui.ddmanager&amp;&amp;!this.options.dropBehaviour){a.ui.ddmanager.drop(this,c)}if(this.options.revert){var b=this;var e=b.placeholder.offset();b.reverting=true;a(this.helper).animate({left:e.left-this.offset.parent.left-b.margins.left+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollLeft),top:e.top-this.offset.parent.top-b.margins.top+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollTop)},parseInt(this.options.revert,10)||500,function(){b._clear(c)})}else{this._clear(c,d)}return false},cancel:function(){var b=this;if(this.dragging){this._mouseUp();if(this.options.helper==&quot;original&quot;){this.currentItem.css(this._storedCSS).removeClass(&quot;ui-sortable-helper&quot;)}else{this.currentItem.show()}for(var c=this.containers.length-1;c&gt;=0;c--){this.containers[c]._trigger(&quot;deactivate&quot;,null,b._uiHash(this));if(this.containers[c].containerCache.over){this.containers[c]._trigger(&quot;out&quot;,null,b._uiHash(this));this.containers[c].containerCache.over=0}}}if(this.placeholder[0].parentNode){this.placeholder[0].parentNode.removeChild(this.placeholder[0])}if(this.options.helper!=&quot;original&quot;&amp;&amp;this.helper&amp;&amp;this.helper[0].parentNode){this.helper.remove()}a.extend(this,{helper:null,dragging:false,reverting:false,_noFinalSort:null});if(this.domPosition.prev){a(this.domPosition.prev).after(this.currentItem)}else{a(this.domPosition.parent).prepend(this.currentItem)}return true},serialize:function(d){var b=this._getItemsAsjQuery(d&amp;&amp;d.connected);var c=[];d=d||{};a(b).each(function(){var e=(a(d.item||this).attr(d.attribute||&quot;id&quot;)||&quot;&quot;).match(d.expression||(/(.+)[-=_](.+)/));if(e){c.push((d.key||e[1]+&quot;[]&quot;)+&quot;=&quot;+(d.key&amp;&amp;d.expression?e[1]:e[2]))}});return c.join(&quot;&amp;&quot;)},toArray:function(d){var b=this._getItemsAsjQuery(d&amp;&amp;d.connected);var c=[];d=d||{};b.each(function(){c.push(a(d.item||this).attr(d.attribute||&quot;id&quot;)||&quot;&quot;)});return c},_intersectsWith:function(m){var e=this.positionAbs.left,d=e+this.helperProportions.width,k=this.positionAbs.top,j=k+this.helperProportions.height;var f=m.left,c=f+m.width,n=m.top,i=n+m.height;var o=this.offset.click.top,h=this.offset.click.left;var g=(k+o)&gt;n&amp;&amp;(k+o)&lt;i&amp;&amp;(e+h)&gt;f&amp;&amp;(e+h)&lt;c;if(this.options.tolerance==&quot;pointer&quot;||this.options.forcePointerForContainers||(this.options.tolerance!=&quot;pointer&quot;&amp;&amp;this.helperProportions[this.floating?&quot;width&quot;:&quot;height&quot;]&gt;m[this.floating?&quot;width&quot;:&quot;height&quot;])){return g}else{return(f&lt;e+(this.helperProportions.width/2)&amp;&amp;d-(this.helperProportions.width/2)&lt;c&amp;&amp;n&lt;k+(this.helperProportions.height/2)&amp;&amp;j-(this.helperProportions.height/2)&lt;i)}},_intersectsWithPointer:function(d){var e=a.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,d.top,d.height),c=a.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,d.left,d.width),g=e&amp;&amp;c,b=this._getDragVerticalDirection(),f=this._getDragHorizontalDirection();if(!g){return false}return this.floating?(((f&amp;&amp;f==&quot;right&quot;)||b==&quot;down&quot;)?2:1):(b&amp;&amp;(b==&quot;down&quot;?2:1))},_intersectsWithSides:function(e){var c=a.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,e.top+(e.height/2),e.height),d=a.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,e.left+(e.width/2),e.width),b=this._getDragVerticalDirection(),f=this._getDragHorizontalDirection();if(this.floating&amp;&amp;f){return((f==&quot;right&quot;&amp;&amp;d)||(f==&quot;left&quot;&amp;&amp;!d))}else{return b&amp;&amp;((b==&quot;down&quot;&amp;&amp;c)||(b==&quot;up&quot;&amp;&amp;!c))}},_getDragVerticalDirection:function(){var b=this.positionAbs.top-this.lastPositionAbs.top;return b!=0&amp;&amp;(b&gt;0?&quot;down&quot;:&quot;up&quot;)},_getDragHorizontalDirection:function(){var b=this.positionAbs.left-this.lastPositionAbs.left;return b!=0&amp;&amp;(b&gt;0?&quot;right&quot;:&quot;left&quot;)},refresh:function(b){this._refreshItems(b);this.refreshPositions()},_connectWith:function(){var b=this.options;return b.connectWith.constructor==String?[b.connectWith]:b.connectWith},_getItemsAsjQuery:function(b){var l=this;var g=[];var e=[];var h=this._connectWith();if(h&amp;&amp;b){for(var d=h.length-1;d&gt;=0;d--){var k=a(h[d]);for(var c=k.length-1;c&gt;=0;c--){var f=a.data(k[c],&quot;sortable&quot;);if(f&amp;&amp;f!=this&amp;&amp;!f.options.disabled){e.push([a.isFunction(f.options.items)?f.options.items.call(f.element):a(f.options.items,f.element).not(&quot;.ui-sortable-helper&quot;),f])}}}}e.push([a.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):a(this.options.items,this.element).not(&quot;.ui-sortable-helper&quot;),this]);for(var d=e.length-1;d&gt;=0;d--){e[d][0].each(function(){g.push(this)})}return a(g)},_removeCurrentsFromItems:function(){var d=this.currentItem.find(&quot;:data(sortable-item)&quot;);for(var c=0;c&lt;this.items.length;c++){for(var b=0;b&lt;d.length;b++){if(d[b]==this.items[c].item[0]){this.items.splice(c,1)}}}},_refreshItems:function(b){this.items=[];this.containers=[this];var h=this.items;var p=this;var f=[[a.isFunction(this.options.items)?this.options.items.call(this.element[0],b,{item:this.currentItem}):a(this.options.items,this.element),this]];var l=this._connectWith();if(l){for(var e=l.length-1;e&gt;=0;e--){var m=a(l[e]);for(var d=m.length-1;d&gt;=0;d--){var g=a.data(m[d],&quot;sortable&quot;);if(g&amp;&amp;g!=this&amp;&amp;!g.options.disabled){f.push([a.isFunction(g.options.items)?g.options.items.call(g.element[0],b,{item:this.currentItem}):a(g.options.items,g.element),g]);this.containers.push(g)}}}}for(var e=f.length-1;e&gt;=0;e--){var k=f[e][1];var c=f[e][0];for(var d=0,n=c.length;d&lt;n;d++){var o=a(c[d]);o.data(&quot;sortable-item&quot;,k);h.push({item:o,instance:k,width:0,height:0,left:0,top:0})}}},refreshPositions:function(b){if(this.offsetParent&amp;&amp;this.helper){this.offset.parent=this._getParentOffset()}for(var d=this.items.length-1;d&gt;=0;d--){var e=this.items[d];if(e.instance!=this.currentContainer&amp;&amp;this.currentContainer&amp;&amp;e.item[0]!=this.currentItem[0]){continue}var c=this.options.toleranceElement?a(this.options.toleranceElement,e.item):e.item;if(!b){e.width=c.outerWidth();e.height=c.outerHeight()}var f=c.offset();e.left=f.left;e.top=f.top}if(this.options.custom&amp;&amp;this.options.custom.refreshContainers){this.options.custom.refreshContainers.call(this)}else{for(var d=this.containers.length-1;d&gt;=0;d--){var f=this.containers[d].element.offset();this.containers[d].containerCache.left=f.left;this.containers[d].containerCache.top=f.top;this.containers[d].containerCache.width=this.containers[d].element.outerWidth();this.containers[d].containerCache.height=this.containers[d].element.outerHeight()}}},_createPlaceholder:function(d){var b=d||this,e=b.options;if(!e.placeholder||e.placeholder.constructor==String){var c=e.placeholder;e.placeholder={element:function(){var f=a(document.createElement(b.currentItem[0].nodeName)).addClass(c||b.currentItem[0].className+&quot; ui-sortable-placeholder&quot;).removeClass(&quot;ui-sortable-helper&quot;)[0];if(!c){f.style.visibility=&quot;hidden&quot;}return f},update:function(f,g){if(c&amp;&amp;!e.forcePlaceholderSize){return}if(!g.height()){g.height(b.currentItem.innerHeight()-parseInt(b.currentItem.css(&quot;paddingTop&quot;)||0,10)-parseInt(b.currentItem.css(&quot;paddingBottom&quot;)||0,10))}if(!g.width()){g.width(b.currentItem.innerWidth()-parseInt(b.currentItem.css(&quot;paddingLeft&quot;)||0,10)-parseInt(b.currentItem.css(&quot;paddingRight&quot;)||0,10))}}}}b.placeholder=a(e.placeholder.element.call(b.element,b.currentItem));b.currentItem.after(b.placeholder);e.placeholder.update(b,b.placeholder)},_contactContainers:function(d){for(var c=this.containers.length-1;c&gt;=0;c--){if(this._intersectsWith(this.containers[c].containerCache)){if(!this.containers[c].containerCache.over){if(this.currentContainer!=this.containers[c]){var h=10000;var g=null;var e=this.positionAbs[this.containers[c].floating?&quot;left&quot;:&quot;top&quot;];for(var b=this.items.length-1;b&gt;=0;b--){if(!a.ui.contains(this.containers[c].element[0],this.items[b].item[0])){continue}var f=this.items[b][this.containers[c].floating?&quot;left&quot;:&quot;top&quot;];if(Math.abs(f-e)&lt;h){h=Math.abs(f-e);g=this.items[b]}}if(!g&amp;&amp;!this.options.dropOnEmpty){continue}this.currentContainer=this.containers[c];g?this._rearrange(d,g,null,true):this._rearrange(d,null,this.containers[c].element,true);this._trigger(&quot;change&quot;,d,this._uiHash());this.containers[c]._trigger(&quot;change&quot;,d,this._uiHash(this));this.options.placeholder.update(this.currentContainer,this.placeholder)}this.containers[c]._trigger(&quot;over&quot;,d,this._uiHash(this));this.containers[c].containerCache.over=1}}else{if(this.containers[c].containerCache.over){this.containers[c]._trigger(&quot;out&quot;,d,this._uiHash(this));this.containers[c].containerCache.over=0}}}},_createHelper:function(c){var d=this.options;var b=a.isFunction(d.helper)?a(d.helper.apply(this.element[0],[c,this.currentItem])):(d.helper==&quot;clone&quot;?this.currentItem.clone():this.currentItem);if(!b.parents(&quot;body&quot;).length){a(d.appendTo!=&quot;parent&quot;?d.appendTo:this.currentItem[0].parentNode)[0].appendChild(b[0])}if(b[0]==this.currentItem[0]){this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css(&quot;position&quot;),top:this.currentItem.css(&quot;top&quot;),left:this.currentItem.css(&quot;left&quot;)}}if(b[0].style.width==&quot;&quot;||d.forceHelperSize){b.width(this.currentItem.width())}if(b[0].style.height==&quot;&quot;||d.forceHelperSize){b.height(this.currentItem.height())}return b},_adjustOffsetFromHelper:function(b){if(b.left!=undefined){this.offset.click.left=b.left+this.margins.left}if(b.right!=undefined){this.offset.click.left=this.helperProportions.width-b.right+this.margins.left}if(b.top!=undefined){this.offset.click.top=b.top+this.margins.top}if(b.bottom!=undefined){this.offset.click.top=this.helperProportions.height-b.bottom+this.margins.top}},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var b=this.offsetParent.offset();if(this.cssPosition==&quot;absolute&quot;&amp;&amp;this.scrollParent[0]!=document&amp;&amp;a.ui.contains(this.scrollParent[0],this.offsetParent[0])){b.left+=this.scrollParent.scrollLeft();b.top+=this.scrollParent.scrollTop()}if((this.offsetParent[0]==document.body)||(this.offsetParent[0].tagName&amp;&amp;this.offsetParent[0].tagName.toLowerCase()==&quot;html&quot;&amp;&amp;a.browser.msie)){b={top:0,left:0}}return{top:b.top+(parseInt(this.offsetParent.css(&quot;borderTopWidth&quot;),10)||0),left:b.left+(parseInt(this.offsetParent.css(&quot;borderLeftWidth&quot;),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition==&quot;relative&quot;){var b=this.currentItem.position();return{top:b.top-(parseInt(this.helper.css(&quot;top&quot;),10)||0)+this.scrollParent.scrollTop(),left:b.left-(parseInt(this.helper.css(&quot;left&quot;),10)||0)+this.scrollParent.scrollLeft()}}else{return{top:0,left:0}}},_cacheMargins:function(){this.margins={left:(parseInt(this.currentItem.css(&quot;marginLeft&quot;),10)||0),top:(parseInt(this.currentItem.css(&quot;marginTop&quot;),10)||0)}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var e=this.options;if(e.containment==&quot;parent&quot;){e.containment=this.helper[0].parentNode}if(e.containment==&quot;document&quot;||e.containment==&quot;window&quot;){this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,a(e.containment==&quot;document&quot;?document:window).width()-this.helperProportions.width-this.margins.left,(a(e.containment==&quot;document&quot;?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]}if(!(/^(document|window|parent)$/).test(e.containment)){var c=a(e.containment)[0];var d=a(e.containment).offset();var b=(a(c).css(&quot;overflow&quot;)!=&quot;hidden&quot;);this.containment=[d.left+(parseInt(a(c).css(&quot;borderLeftWidth&quot;),10)||0)+(parseInt(a(c).css(&quot;paddingLeft&quot;),10)||0)-this.margins.left,d.top+(parseInt(a(c).css(&quot;borderTopWidth&quot;),10)||0)+(parseInt(a(c).css(&quot;paddingTop&quot;),10)||0)-this.margins.top,d.left+(b?Math.max(c.scrollWidth,c.offsetWidth):c.offsetWidth)-(parseInt(a(c).css(&quot;borderLeftWidth&quot;),10)||0)-(parseInt(a(c).css(&quot;paddingRight&quot;),10)||0)-this.helperProportions.width-this.margins.left,d.top+(b?Math.max(c.scrollHeight,c.offsetHeight):c.offsetHeight)-(parseInt(a(c).css(&quot;borderTopWidth&quot;),10)||0)-(parseInt(a(c).css(&quot;paddingBottom&quot;),10)||0)-this.helperProportions.height-this.margins.top]}},_convertPositionTo:function(f,h){if(!h){h=this.position}var c=f==&quot;absolute&quot;?1:-1;var e=this.options,b=this.cssPosition==&quot;absolute&quot;&amp;&amp;!(this.scrollParent[0]!=document&amp;&amp;a.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,g=(/(html|body)/i).test(b[0].tagName);return{top:(h.top+this.offset.relative.top*c+this.offset.parent.top*c-(a.browser.safari&amp;&amp;this.cssPosition==&quot;fixed&quot;?0:(this.cssPosition==&quot;fixed&quot;?-this.scrollParent.scrollTop():(g?0:b.scrollTop()))*c)),left:(h.left+this.offset.relative.left*c+this.offset.parent.left*c-(a.browser.safari&amp;&amp;this.cssPosition==&quot;fixed&quot;?0:(this.cssPosition==&quot;fixed&quot;?-this.scrollParent.scrollLeft():g?0:b.scrollLeft())*c))}},_generatePosition:function(e){var h=this.options,b=this.cssPosition==&quot;absolute&quot;&amp;&amp;!(this.scrollParent[0]!=document&amp;&amp;a.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,i=(/(html|body)/i).test(b[0].tagName);if(this.cssPosition==&quot;relative&quot;&amp;&amp;!(this.scrollParent[0]!=document&amp;&amp;this.scrollParent[0]!=this.offsetParent[0])){this.offset.relative=this._getRelativeOffset()}var d=e.pageX;var c=e.pageY;if(this.originalPosition){if(this.containment){if(e.pageX-this.offset.click.left&lt;this.containment[0]){d=this.containment[0]+this.offset.click.left}if(e.pageY-this.offset.click.top&lt;this.containment[1]){c=this.containment[1]+this.offset.click.top}if(e.pageX-this.offset.click.left&gt;this.containment[2]){d=this.containment[2]+this.offset.click.left}if(e.pageY-this.offset.click.top&gt;this.containment[3]){c=this.containment[3]+this.offset.click.top}}if(h.grid){var g=this.originalPageY+Math.round((c-this.originalPageY)/h.grid[1])*h.grid[1];c=this.containment?(!(g-this.offset.click.top&lt;this.containment[1]||g-this.offset.click.top&gt;this.containment[3])?g:(!(g-this.offset.click.top&lt;this.containment[1])?g-h.grid[1]:g+h.grid[1])):g;var f=this.originalPageX+Math.round((d-this.originalPageX)/h.grid[0])*h.grid[0];d=this.containment?(!(f-this.offset.click.left&lt;this.containment[0]||f-this.offset.click.left&gt;this.containment[2])?f:(!(f-this.offset.click.left&lt;this.containment[0])?f-h.grid[0]:f+h.grid[0])):f}}return{top:(c-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(a.browser.safari&amp;&amp;this.cssPosition==&quot;fixed&quot;?0:(this.cssPosition==&quot;fixed&quot;?-this.scrollParent.scrollTop():(i?0:b.scrollTop())))),left:(d-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(a.browser.safari&amp;&amp;this.cssPosition==&quot;fixed&quot;?0:(this.cssPosition==&quot;fixed&quot;?-this.scrollParent.scrollLeft():i?0:b.scrollLeft())))}},_rearrange:function(g,f,c,e){c?c[0].appendChild(this.placeholder[0]):f.item[0].parentNode.insertBefore(this.placeholder[0],(this.direction==&quot;down&quot;?f.item[0]:f.item[0].nextSibling));this.counter=this.counter?++this.counter:1;var d=this,b=this.counter;window.setTimeout(function(){if(b==d.counter){d.refreshPositions(!e)}},0)},_clear:function(d,e){this.reverting=false;var f=[],b=this;if(!this._noFinalSort&amp;&amp;this.currentItem[0].parentNode){this.placeholder.before(this.currentItem)}this._noFinalSort=null;if(this.helper[0]==this.currentItem[0]){for(var c in this._storedCSS){if(this._storedCSS[c]==&quot;auto&quot;||this._storedCSS[c]==&quot;static&quot;){this._storedCSS[c]=&quot;&quot;}}this.currentItem.css(this._storedCSS).removeClass(&quot;ui-sortable-helper&quot;)}else{this.currentItem.show()}if(this.fromOutside&amp;&amp;!e){f.push(function(g){this._trigger(&quot;receive&quot;,g,this._uiHash(this.fromOutside))})}if((this.fromOutside||this.domPosition.prev!=this.currentItem.prev().not(&quot;.ui-sortable-helper&quot;)[0]||this.domPosition.parent!=this.currentItem.parent()[0])&amp;&amp;!e){f.push(function(g){this._trigger(&quot;update&quot;,g,this._uiHash())})}if(!a.ui.contains(this.element[0],this.currentItem[0])){if(!e){f.push(function(g){this._trigger(&quot;remove&quot;,g,this._uiHash())})}for(var c=this.containers.length-1;c&gt;=0;c--){if(a.ui.contains(this.containers[c].element[0],this.currentItem[0])&amp;&amp;!e){f.push((function(g){return function(h){g._trigger(&quot;receive&quot;,h,this._uiHash(this))}}).call(this,this.containers[c]));f.push((function(g){return function(h){g._trigger(&quot;update&quot;,h,this._uiHash(this))}}).call(this,this.containers[c]))}}}for(var c=this.containers.length-1;c&gt;=0;c--){if(!e){f.push((function(g){return function(h){g._trigger(&quot;deactivate&quot;,h,this._uiHash(this))}}).call(this,this.containers[c]))}if(this.containers[c].containerCache.over){f.push((function(g){return function(h){g._trigger(&quot;out&quot;,h,this._uiHash(this))}}).call(this,this.containers[c]));this.containers[c].containerCache.over=0}}if(this._storedCursor){a(&quot;body&quot;).css(&quot;cursor&quot;,this._storedCursor)}if(this._storedOpacity){this.helper.css(&quot;opacity&quot;,this._storedOpacity)}if(this._storedZIndex){this.helper.css(&quot;zIndex&quot;,this._storedZIndex==&quot;auto&quot;?&quot;&quot;:this._storedZIndex)}this.dragging=false;if(this.cancelHelperRemoval){if(!e){this._trigger(&quot;beforeStop&quot;,d,this._uiHash());for(var c=0;c&lt;f.length;c++){f[c].call(this,d)}this._trigger(&quot;stop&quot;,d,this._uiHash())}return false}if(!e){this._trigger(&quot;beforeStop&quot;,d,this._uiHash())}this.placeholder[0].parentNode.removeChild(this.placeholder[0]);if(this.helper[0]!=this.currentItem[0]){this.helper.remove()}this.helper=null;if(!e){for(var c=0;c&lt;f.length;c++){f[c].call(this,d)}this._trigger(&quot;stop&quot;,d,this._uiHash())}this.fromOutside=false;return true},_trigger:function(){if(a.widget.prototype._trigger.apply(this,arguments)===false){this.cancel()}},_uiHash:function(c){var b=c||this;return{helper:b.helper,placeholder:b.placeholder||a([]),position:b.position,absolutePosition:b.positionAbs,offset:b.positionAbs,item:b.currentItem,sender:c?c.element:null}}}));a.extend(a.ui.sortable,{getter:&quot;serialize toArray&quot;,version:&quot;1.7.1&quot;,eventPrefix:&quot;sort&quot;,defaults:{appendTo:&quot;parent&quot;,axis:false,cancel:&quot;:input,option&quot;,connectWith:false,containment:false,cursor:&quot;auto&quot;,cursorAt:false,delay:0,distance:1,dropOnEmpty:true,forcePlaceholderSize:false,forceHelperSize:false,grid:false,handle:false,helper:&quot;original&quot;,items:&quot;&gt; *&quot;,opacity:false,placeholder:false,revert:false,scroll:true,scrollSensitivity:20,scrollSpeed:20,scope:&quot;default&quot;,tolerance:&quot;intersect&quot;,zIndex:1000}})})(jQuery);
</del><span class="cx">\ No newline at end of file
</span><ins>+(function(a){a.widget(&quot;ui.sortable&quot;,a.extend({},a.ui.mouse,{_init:function(){var b=this.options;this.containerCache={};this.element.addClass(&quot;ui-sortable&quot;);this.refresh();this.floating=this.items.length?(/left|right/).test(this.items[0].item.css(&quot;float&quot;)):false;this.offset=this.element.offset();this._mouseInit()},destroy:function(){this.element.removeClass(&quot;ui-sortable ui-sortable-disabled&quot;).removeData(&quot;sortable&quot;).unbind(&quot;.sortable&quot;);this._mouseDestroy();for(var b=this.items.length-1;b&gt;=0;b--){this.items[b].item.removeData(&quot;sortable-item&quot;)}},_mouseCapture:function(e,f){if(this.reverting){return false}if(this.options.disabled||this.options.type==&quot;static&quot;){return false}this._refreshItems(e);var d=null,c=this,b=a(e.target).parents().each(function(){if(a.data(this,&quot;sortable-item&quot;)==c){d=a(this);return false}});if(a.data(e.target,&quot;sortable-item&quot;)==c){d=a(e.target)}if(!d){return false}if(this.options.handle&amp;&amp;!f){var g=false;a(this.options.handle,d).find(&quot;*&quot;).andSelf().each(function(){if(this==e.target){g=true}});if(!g){return false}}this.currentItem=d;this._removeCurrentsFromItems();return true},_mouseStart:function(e,f,b){var g=this.options,c=this;this.currentContainer=this;this.refreshPositions();this.helper=this._createHelper(e);this._cacheHelperProportions();this._cacheMargins();this.scrollParent=this.helper.scrollParent();this.offset=this.currentItem.offset();this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left};this.helper.css(&quot;position&quot;,&quot;absolute&quot;);this.cssPosition=this.helper.css(&quot;position&quot;);a.extend(this.offset,{click:{left:e.pageX-this.offset.left,top:e.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.originalPosition=this._generatePosition(e);this.originalPageX=e.pageX;this.originalPageY=e.pageY;if(g.cursorAt){this._adjustOffsetFromHelper(g.cursorAt)}this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]};if(this.helper[0]!=this.currentItem[0]){this.currentItem.hide()}this._createPlaceholder();if(g.containment){this._setContainment()}if(g.cursor){if(a(&quot;body&quot;).css(&quot;cursor&quot;)){this._storedCursor=a(&quot;body&quot;).css(&quot;cursor&quot;)}a(&quot;body&quot;).css(&quot;cursor&quot;,g.cursor)}if(g.opacity){if(this.helper.css(&quot;opacity&quot;)){this._storedOpacity=this.helper.css(&quot;opacity&quot;)}this.helper.css(&quot;opacity&quot;,g.opacity)}if(g.zIndex){if(this.helper.css(&quot;zIndex&quot;)){this._storedZIndex=this.helper.css(&quot;zIndex&quot;)}this.helper.css(&quot;zIndex&quot;,g.zIndex)}if(this.scrollParent[0]!=document&amp;&amp;this.scrollParent[0].tagName!=&quot;HTML&quot;){this.overflowOffset=this.scrollParent.offset()}this._trigger(&quot;start&quot;,e,this._uiHash());if(!this._preserveHelperProportions){this._cacheHelperProportions()}if(!b){for(var d=this.containers.length-1;d&gt;=0;d--){this.containers[d]._trigger(&quot;activate&quot;,e,c._uiHash(this))}}if(a.ui.ddmanager){a.ui.ddmanager.current=this}if(a.ui.ddmanager&amp;&amp;!g.dropBehaviour){a.ui.ddmanager.prepareOffsets(this,e)}this.dragging=true;this.helper.addClass(&quot;ui-sortable-helper&quot;);this._mouseDrag(e);return true},_mouseDrag:function(f){this.position=this._generatePosition(f);this.positionAbs=this._convertPositionTo(&quot;absolute&quot;);if(!this.lastPositionAbs){this.lastPositionAbs=this.positionAbs}if(this.options.scroll){var g=this.options,b=false;if(this.scrollParent[0]!=document&amp;&amp;this.scrollParent[0].tagName!=&quot;HTML&quot;){if((this.overflowOffset.top+this.scrollParent[0].offsetHeight)-f.pageY&lt;g.scrollSensitivity){this.scrollParent[0].scrollTop=b=this.scrollParent[0].scrollTop+g.scrollSpeed}else{if(f.pageY-this.overflowOffset.top&lt;g.scrollSensitivity){this.scrollParent[0].scrollTop=b=this.scrollParent[0].scrollTop-g.scrollSpeed}}if((this.overflowOffset.left+this.scrollParent[0].offsetWidth)-f.pageX&lt;g.scrollSensitivity){this.scrollParent[0].scrollLeft=b=this.scrollParent[0].scrollLeft+g.scrollSpeed}else{if(f.pageX-this.overflowOffset.left&lt;g.scrollSensitivity){this.scrollParent[0].scrollLeft=b=this.scrollParent[0].scrollLeft-g.scrollSpeed}}}else{if(f.pageY-a(document).scrollTop()&lt;g.scrollSensitivity){b=a(document).scrollTop(a(document).scrollTop()-g.scrollSpeed)}else{if(a(window).height()-(f.pageY-a(document).scrollTop())&lt;g.scrollSensitivity){b=a(document).scrollTop(a(document).scrollTop()+g.scrollSpeed)}}if(f.pageX-a(document).scrollLeft()&lt;g.scrollSensitivity){b=a(document).scrollLeft(a(document).scrollLeft()-g.scrollSpeed)}else{if(a(window).width()-(f.pageX-a(document).scrollLeft())&lt;g.scrollSensitivity){b=a(document).scrollLeft(a(document).scrollLeft()+g.scrollSpeed)}}}if(b!==false&amp;&amp;a.ui.ddmanager&amp;&amp;!g.dropBehaviour){a.ui.ddmanager.prepareOffsets(this,f)}}this.positionAbs=this._convertPositionTo(&quot;absolute&quot;);if(!this.options.axis||this.options.axis!=&quot;y&quot;){this.helper[0].style.left=this.position.left+&quot;px&quot;}if(!this.options.axis||this.options.axis!=&quot;x&quot;){this.helper[0].style.top=this.position.top+&quot;px&quot;}for(var d=this.items.length-1;d&gt;=0;d--){var e=this.items[d],c=e.item[0],h=this._intersectsWithPointer(e);if(!h){continue}if(c!=this.currentItem[0]&amp;&amp;this.placeholder[h==1?&quot;next&quot;:&quot;prev&quot;]()[0]!=c&amp;&amp;!a.ui.contains(this.placeholder[0],c)&amp;&amp;(this.options.type==&quot;semi-dynamic&quot;?!a.ui.contains(this.element[0],c):true)){this.direction=h==1?&quot;down&quot;:&quot;up&quot;;if(this.options.tolerance==&quot;pointer&quot;||this._intersectsWithSides(e)){this._rearrange(f,e)}else{break}this._trigger(&quot;change&quot;,f,this._uiHash());break}}this._contactContainers(f);if(a.ui.ddmanager){a.ui.ddmanager.drag(this,f)}this._trigger(&quot;sort&quot;,f,this._uiHash());this.lastPositionAbs=this.positionAbs;return false},_mouseStop:function(c,d){if(!c){return}if(a.ui.ddmanager&amp;&amp;!this.options.dropBehaviour){a.ui.ddmanager.drop(this,c)}if(this.options.revert){var b=this;var e=b.placeholder.offset();b.reverting=true;a(this.helper).animate({left:e.left-this.offset.parent.left-b.margins.left+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollLeft),top:e.top-this.offset.parent.top-b.margins.top+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollTop)},parseInt(this.options.revert,10)||500,function(){b._clear(c)})}else{this._clear(c,d)}return false},cancel:function(){var b=this;if(this.dragging){this._mouseUp();if(this.options.helper==&quot;original&quot;){this.currentItem.css(this._storedCSS).removeClass(&quot;ui-sortable-helper&quot;)}else{this.currentItem.show()}for(var c=this.containers.length-1;c&gt;=0;c--){this.containers[c]._trigger(&quot;deactivate&quot;,null,b._uiHash(this));if(this.containers[c].containerCache.over){this.containers[c]._trigger(&quot;out&quot;,null,b._uiHash(this));this.containers[c].containerCache.over=0}}}if(this.placeholder[0].parentNode){this.placeholder[0].parentNode.removeChild(this.placeholder[0])}if(this.options.helper!=&quot;original&quot;&amp;&amp;this.helper&amp;&amp;this.helper[0].parentNode){this.helper.remove()}a.extend(this,{helper:null,dragging:false,reverting:false,_noFinalSort:null});if(this.domPosition.prev){a(this.domPosition.prev).after(this.currentItem)}else{a(this.domPosition.parent).prepend(this.currentItem)}return true},serialize:function(d){var b=this._getItemsAsjQuery(d&amp;&amp;d.connected);var c=[];d=d||{};a(b).each(function(){var e=(a(d.item||this).attr(d.attribute||&quot;id&quot;)||&quot;&quot;).match(d.expression||(/(.+)[-=_](.+)/));if(e){c.push((d.key||e[1]+&quot;[]&quot;)+&quot;=&quot;+(d.key&amp;&amp;d.expression?e[1]:e[2]))}});return c.join(&quot;&amp;&quot;)},toArray:function(d){var b=this._getItemsAsjQuery(d&amp;&amp;d.connected);var c=[];d=d||{};b.each(function(){c.push(a(d.item||this).attr(d.attribute||&quot;id&quot;)||&quot;&quot;)});return c},_intersectsWith:function(m){var e=this.positionAbs.left,d=e+this.helperProportions.width,k=this.positionAbs.top,j=k+this.helperProportions.height;var f=m.left,c=f+m.width,n=m.top,i=n+m.height;var o=this.offset.click.top,h=this.offset.click.left;var g=(k+o)&gt;n&amp;&amp;(k+o)&lt;i&amp;&amp;(e+h)&gt;f&amp;&amp;(e+h)&lt;c;if(this.options.tolerance==&quot;pointer&quot;||this.options.forcePointerForContainers||(this.options.tolerance!=&quot;pointer&quot;&amp;&amp;this.helperProportions[this.floating?&quot;width&quot;:&quot;height&quot;]&gt;m[this.floating?&quot;width&quot;:&quot;height&quot;])){return g}else{return(f&lt;e+(this.helperProportions.width/2)&amp;&amp;d-(this.helperProportions.width/2)&lt;c&amp;&amp;n&lt;k+(this.helperProportions.height/2)&amp;&amp;j-(this.helperProportions.height/2)&lt;i)}},_intersectsWithPointer:function(d){var e=a.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,d.top,d.height),c=a.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,d.left,d.width),g=e&amp;&amp;c,b=this._getDragVerticalDirection(),f=this._getDragHorizontalDirection();if(!g){return false}return this.floating?(((f&amp;&amp;f==&quot;right&quot;)||b==&quot;down&quot;)?2:1):(b&amp;&amp;(b==&quot;down&quot;?2:1))},_intersectsWithSides:function(e){var c=a.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,e.top+(e.height/2),e.height),d=a.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,e.left+(e.width/2),e.width),b=this._getDragVerticalDirection(),f=this._getDragHorizontalDirection();if(this.floating&amp;&amp;f){return((f==&quot;right&quot;&amp;&amp;d)||(f==&quot;left&quot;&amp;&amp;!d))}else{return b&amp;&amp;((b==&quot;down&quot;&amp;&amp;c)||(b==&quot;up&quot;&amp;&amp;!c))}},_getDragVerticalDirection:function(){var b=this.positionAbs.top-this.lastPositionAbs.top;return b!=0&amp;&amp;(b&gt;0?&quot;down&quot;:&quot;up&quot;)},_getDragHorizontalDirection:function(){var b=this.positionAbs.left-this.lastPositionAbs.left;return b!=0&amp;&amp;(b&gt;0?&quot;right&quot;:&quot;left&quot;)},refresh:function(b){this._refreshItems(b);this.refreshPositions()},_connectWith:function(){var b=this.options;return b.connectWith.constructor==String?[b.connectWith]:b.connectWith},_getItemsAsjQuery:function(b){var l=this;var g=[];var e=[];var h=this._connectWith();if(h&amp;&amp;b){for(var d=h.length-1;d&gt;=0;d--){var k=a(h[d]);for(var c=k.length-1;c&gt;=0;c--){var f=a.data(k[c],&quot;sortable&quot;);if(f&amp;&amp;f!=this&amp;&amp;!f.options.disabled){e.push([a.isFunction(f.options.items)?f.options.items.call(f.element):a(f.options.items,f.element).not(&quot;.ui-sortable-helper&quot;),f])}}}}e.push([a.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):a(this.options.items,this.element).not(&quot;.ui-sortable-helper&quot;),this]);for(var d=e.length-1;d&gt;=0;d--){e[d][0].each(function(){g.push(this)})}return a(g)},_removeCurrentsFromItems:function(){var d=this.currentItem.find(&quot;:data(sortable-item)&quot;);for(var c=0;c&lt;this.items.length;c++){for(var b=0;b&lt;d.length;b++){if(d[b]==this.items[c].item[0]){this.items.splice(c,1)}}}},_refreshItems:function(b){this.items=[];this.containers=[this];var h=this.items;var p=this;var f=[[a.isFunction(this.options.items)?this.options.items.call(this.element[0],b,{item:this.currentItem}):a(this.options.items,this.element),this]];var l=this._connectWith();if(l){for(var e=l.length-1;e&gt;=0;e--){var m=a(l[e]);for(var d=m.length-1;d&gt;=0;d--){var g=a.data(m[d],&quot;sortable&quot;);if(g&amp;&amp;g!=this&amp;&amp;!g.options.disabled){f.push([a.isFunction(g.options.items)?g.options.items.call(g.element[0],b,{item:this.currentItem}):a(g.options.items,g.element),g]);this.containers.push(g)}}}}for(var e=f.length-1;e&gt;=0;e--){var k=f[e][1];var c=f[e][0];for(var d=0,n=c.length;d&lt;n;d++){var o=a(c[d]);o.data(&quot;sortable-item&quot;,k);h.push({item:o,instance:k,width:0,height:0,left:0,top:0})}}},refreshPositions:function(b){if(this.offsetParent&amp;&amp;this.helper){this.offset.parent=this._getParentOffset()}for(var d=this.items.length-1;d&gt;=0;d--){var e=this.items[d];if(e.instance!=this.currentContainer&amp;&amp;this.currentContainer&amp;&amp;e.item[0]!=this.currentItem[0]){continue}var c=this.options.toleranceElement?a(this.options.toleranceElement,e.item):e.item;if(!b){e.width=c.outerWidth();e.height=c.outerHeight()}var f=c.offset();e.left=f.left;e.top=f.top}if(this.options.custom&amp;&amp;this.options.custom.refreshContainers){this.options.custom.refreshContainers.call(this)}else{for(var d=this.containers.length-1;d&gt;=0;d--){var f=this.containers[d].element.offset();this.containers[d].containerCache.left=f.left;this.containers[d].containerCache.top=f.top;this.containers[d].containerCache.width=this.containers[d].element.outerWidth();this.containers[d].containerCache.height=this.containers[d].element.outerHeight()}}},_createPlaceholder:function(d){var b=d||this,e=b.options;if(!e.placeholder||e.placeholder.constructor==String){var c=e.placeholder;e.placeholder={element:function(){var f=a(document.createElement(b.currentItem[0].nodeName)).addClass(c||b.currentItem[0].className+&quot; ui-sortable-placeholder&quot;).removeClass(&quot;ui-sortable-helper&quot;)[0];if(!c){f.style.visibility=&quot;hidden&quot;}return f},update:function(f,g){if(c&amp;&amp;!e.forcePlaceholderSize){return}if(!g.height()){g.height(b.currentItem.innerHeight()-parseInt(b.currentItem.css(&quot;paddingTop&quot;)||0,10)-parseInt(b.currentItem.css(&quot;paddingBottom&quot;)||0,10))}if(!g.width()){g.width(b.currentItem.innerWidth()-parseInt(b.currentItem.css(&quot;paddingLeft&quot;)||0,10)-parseInt(b.currentItem.css(&quot;paddingRight&quot;)||0,10))}}}}b.placeholder=a(e.placeholder.element.call(b.element,b.currentItem));b.currentItem.after(b.placeholder);e.placeholder.update(b,b.placeholder)},_contactContainers:function(d){for(var c=this.containers.length-1;c&gt;=0;c--){if(this._intersectsWith(this.containers[c].containerCache)){if(!this.containers[c].containerCache.over){if(this.currentContainer!=this.containers[c]){var h=10000;var g=null;var e=this.positionAbs[this.containers[c].floating?&quot;left&quot;:&quot;top&quot;];for(var b=this.items.length-1;b&gt;=0;b--){if(!a.ui.contains(this.containers[c].element[0],this.items[b].item[0])){continue}var f=this.items[b][this.containers[c].floating?&quot;left&quot;:&quot;top&quot;];if(Math.abs(f-e)&lt;h){h=Math.abs(f-e);g=this.items[b]}}if(!g&amp;&amp;!this.options.dropOnEmpty){continue}this.currentContainer=this.containers[c];g?this._rearrange(d,g,null,true):this._rearrange(d,null,this.containers[c].element,true);this._trigger(&quot;change&quot;,d,this._uiHash());this.containers[c]._trigger(&quot;change&quot;,d,this._uiHash(this));this.options.placeholder.update(this.currentContainer,this.placeholder)}this.containers[c]._trigger(&quot;over&quot;,d,this._uiHash(this));this.containers[c].containerCache.over=1}}else{if(this.containers[c].containerCache.over){this.containers[c]._trigger(&quot;out&quot;,d,this._uiHash(this));this.containers[c].containerCache.over=0}}}},_createHelper:function(c){var d=this.options;var b=a.isFunction(d.helper)?a(d.helper.apply(this.element[0],[c,this.currentItem])):(d.helper==&quot;clone&quot;?this.currentItem.clone():this.currentItem);if(!b.parents(&quot;body&quot;).length){a(d.appendTo!=&quot;parent&quot;?d.appendTo:this.currentItem[0].parentNode)[0].appendChild(b[0])}if(b[0]==this.currentItem[0]){this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css(&quot;position&quot;),top:this.currentItem.css(&quot;top&quot;),left:this.currentItem.css(&quot;left&quot;)}}if(b[0].style.width==&quot;&quot;||d.forceHelperSize){b.width(this.currentItem.width())}if(b[0].style.height==&quot;&quot;||d.forceHelperSize){b.height(this.currentItem.height())}return b},_adjustOffsetFromHelper:function(b){if(b.left!=undefined){this.offset.click.left=b.left+this.margins.left}if(b.right!=undefined){this.offset.click.left=this.helperProportions.width-b.right+this.margins.left}if(b.top!=undefined){this.offset.click.top=b.top+this.margins.top}if(b.bottom!=undefined){this.offset.click.top=this.helperProportions.height-b.bottom+this.margins.top}},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var b=this.offsetParent.offset();if(this.cssPosition==&quot;absolute&quot;&amp;&amp;this.scrollParent[0]!=document&amp;&amp;a.ui.contains(this.scrollParent[0],this.offsetParent[0])){b.left+=this.scrollParent.scrollLeft();b.top+=this.scrollParent.scrollTop()}if((this.offsetParent[0]==document.body)||(this.offsetParent[0].tagName&amp;&amp;this.offsetParent[0].tagName.toLowerCase()==&quot;html&quot;&amp;&amp;a.browser.msie)){b={top:0,left:0}}return{top:b.top+(parseInt(this.offsetParent.css(&quot;borderTopWidth&quot;),10)||0),left:b.left+(parseInt(this.offsetParent.css(&quot;borderLeftWidth&quot;),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition==&quot;relative&quot;){var b=this.currentItem.position();return{top:b.top-(parseInt(this.helper.css(&quot;top&quot;),10)||0)+this.scrollParent.scrollTop(),left:b.left-(parseInt(this.helper.css(&quot;left&quot;),10)||0)+this.scrollParent.scrollLeft()}}else{return{top:0,left:0}}},_cacheMargins:function(){this.margins={left:(parseInt(this.currentItem.css(&quot;marginLeft&quot;),10)||0),top:(parseInt(this.currentItem.css(&quot;marginTop&quot;),10)||0)}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var e=this.options;if(e.containment==&quot;parent&quot;){e.containment=this.helper[0].parentNode}if(e.containment==&quot;document&quot;||e.containment==&quot;window&quot;){this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,a(e.containment==&quot;document&quot;?document:window).width()-this.helperProportions.width-this.margins.left,(a(e.containment==&quot;document&quot;?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]}if(!(/^(document|window|parent)$/).test(e.containment)){var c=a(e.containment)[0];var d=a(e.containment).offset();var b=(a(c).css(&quot;overflow&quot;)!=&quot;hidden&quot;);this.containment=[d.left+(parseInt(a(c).css(&quot;borderLeftWidth&quot;),10)||0)+(parseInt(a(c).css(&quot;paddingLeft&quot;),10)||0)-this.margins.left,d.top+(parseInt(a(c).css(&quot;borderTopWidth&quot;),10)||0)+(parseInt(a(c).css(&quot;paddingTop&quot;),10)||0)-this.margins.top,d.left+(b?Math.max(c.scrollWidth,c.offsetWidth):c.offsetWidth)-(parseInt(a(c).css(&quot;borderLeftWidth&quot;),10)||0)-(parseInt(a(c).css(&quot;paddingRight&quot;),10)||0)-this.helperProportions.width-this.margins.left,d.top+(b?Math.max(c.scrollHeight,c.offsetHeight):c.offsetHeight)-(parseInt(a(c).css(&quot;borderTopWidth&quot;),10)||0)-(parseInt(a(c).css(&quot;paddingBottom&quot;),10)||0)-this.helperProportions.height-this.margins.top]}},_convertPositionTo:function(f,h){if(!h){h=this.position}var c=f==&quot;absolute&quot;?1:-1;var e=this.options,b=this.cssPosition==&quot;absolute&quot;&amp;&amp;!(this.scrollParent[0]!=document&amp;&amp;a.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,g=(/(html|body)/i).test(b[0].tagName);return{top:(h.top+this.offset.relative.top*c+this.offset.parent.top*c-(a.browser.safari&amp;&amp;this.cssPosition==&quot;fixed&quot;?0:(this.cssPosition==&quot;fixed&quot;?-this.scrollParent.scrollTop():(g?0:b.scrollTop()))*c)),left:(h.left+this.offset.relative.left*c+this.offset.parent.left*c-(a.browser.safari&amp;&amp;this.cssPosition==&quot;fixed&quot;?0:(this.cssPosition==&quot;fixed&quot;?-this.scrollParent.scrollLeft():g?0:b.scrollLeft())*c))}},_generatePosition:function(e){var h=this.options,b=this.cssPosition==&quot;absolute&quot;&amp;&amp;!(this.scrollParent[0]!=document&amp;&amp;a.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,i=(/(html|body)/i).test(b[0].tagName);if(this.cssPosition==&quot;relative&quot;&amp;&amp;!(this.scrollParent[0]!=document&amp;&amp;this.scrollParent[0]!=this.offsetParent[0])){this.offset.relative=this._getRelativeOffset()}var d=e.pageX;var c=e.pageY;if(this.originalPosition){if(this.containment){if(e.pageX-this.offset.click.left&lt;this.containment[0]){d=this.containment[0]+this.offset.click.left}if(e.pageY-this.offset.click.top&lt;this.containment[1]){c=this.containment[1]+this.offset.click.top}if(e.pageX-this.offset.click.left&gt;this.containment[2]){d=this.containment[2]+this.offset.click.left}if(e.pageY-this.offset.click.top&gt;this.containment[3]){c=this.containment[3]+this.offset.click.top}}if(h.grid){var g=this.originalPageY+Math.round((c-this.originalPageY)/h.grid[1])*h.grid[1];c=this.containment?(!(g-this.offset.click.top&lt;this.containment[1]||g-this.offset.click.top&gt;this.containment[3])?g:(!(g-this.offset.click.top&lt;this.containment[1])?g-h.grid[1]:g+h.grid[1])):g;var f=this.originalPageX+Math.round((d-this.originalPageX)/h.grid[0])*h.grid[0];d=this.containment?(!(f-this.offset.click.left&lt;this.containment[0]||f-this.offset.click.left&gt;this.containment[2])?f:(!(f-this.offset.click.left&lt;this.containment[0])?f-h.grid[0]:f+h.grid[0])):f}}return{top:(c-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(a.browser.safari&amp;&amp;this.cssPosition==&quot;fixed&quot;?0:(this.cssPosition==&quot;fixed&quot;?-this.scrollParent.scrollTop():(i?0:b.scrollTop())))),left:(d-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(a.browser.safari&amp;&amp;this.cssPosition==&quot;fixed&quot;?0:(this.cssPosition==&quot;fixed&quot;?-this.scrollParent.scrollLeft():i?0:b.scrollLeft())))}},_rearrange:function(g,f,c,e){c?c[0].appendChild(this.placeholder[0]):f.item[0].parentNode.insertBefore(this.placeholder[0],(this.direction==&quot;down&quot;?f.item[0]:f.item[0].nextSibling));this.counter=this.counter?++this.counter:1;var d=this,b=this.counter;window.setTimeout(function(){if(b==d.counter){d.refreshPositions(!e)}},0)},_clear:function(d,e){this.reverting=false;var f=[],b=this;if(!this._noFinalSort&amp;&amp;this.currentItem[0].parentNode){this.placeholder.before(this.currentItem)}this._noFinalSort=null;if(this.helper[0]==this.currentItem[0]){for(var c in this._storedCSS){if(this._storedCSS[c]==&quot;auto&quot;||this._storedCSS[c]==&quot;static&quot;){this._storedCSS[c]=&quot;&quot;}}this.currentItem.css(this._storedCSS).removeClass(&quot;ui-sortable-helper&quot;)}else{this.currentItem.show()}if(this.fromOutside&amp;&amp;!e){f.push(function(g){this._trigger(&quot;receive&quot;,g,this._uiHash(this.fromOutside))})}if((this.fromOutside||this.domPosition.prev!=this.currentItem.prev().not(&quot;.ui-sortable-helper&quot;)[0]||this.domPosition.parent!=this.currentItem.parent()[0])&amp;&amp;!e){f.push(function(g){this._trigger(&quot;update&quot;,g,this._uiHash())})}if(!a.ui.contains(this.element[0],this.currentItem[0])){if(!e){f.push(function(g){this._trigger(&quot;remove&quot;,g,this._uiHash())})}for(var c=this.containers.length-1;c&gt;=0;c--){if(a.ui.contains(this.containers[c].element[0],this.currentItem[0])&amp;&amp;!e){f.push((function(g){return function(h){g._trigger(&quot;receive&quot;,h,this._uiHash(this))}}).call(this,this.containers[c]));f.push((function(g){return function(h){g._trigger(&quot;update&quot;,h,this._uiHash(this))}}).call(this,this.containers[c]))}}}for(var c=this.containers.length-1;c&gt;=0;c--){if(!e){f.push((function(g){return function(h){g._trigger(&quot;deactivate&quot;,h,this._uiHash(this))}}).call(this,this.containers[c]))}if(this.containers[c].containerCache.over){f.push((function(g){return function(h){g._trigger(&quot;out&quot;,h,this._uiHash(this))}}).call(this,this.containers[c]));this.containers[c].containerCache.over=0}}if(this._storedCursor){a(&quot;body&quot;).css(&quot;cursor&quot;,this._storedCursor)}if(this._storedOpacity){this.helper.css(&quot;opacity&quot;,this._storedOpacity)}if(this._storedZIndex){this.helper.css(&quot;zIndex&quot;,this._storedZIndex==&quot;auto&quot;?&quot;&quot;:this._storedZIndex)}this.dragging=false;if(this.cancelHelperRemoval){if(!e){this._trigger(&quot;beforeStop&quot;,d,this._uiHash());for(var c=0;c&lt;f.length;c++){f[c].call(this,d)}this._trigger(&quot;stop&quot;,d,this._uiHash())}return false}if(!e){this._trigger(&quot;beforeStop&quot;,d,this._uiHash())}this.placeholder[0].parentNode.removeChild(this.placeholder[0]);if(this.helper[0]!=this.currentItem[0]){this.helper.remove()}this.helper=null;if(!e){for(var c=0;c&lt;f.length;c++){f[c].call(this,d)}this._trigger(&quot;stop&quot;,d,this._uiHash())}this.fromOutside=false;return true},_trigger:function(){if(a.widget.prototype._trigger.apply(this,arguments)===false){this.cancel()}},_uiHash:function(c){var b=c||this;return{helper:b.helper,placeholder:b.placeholder||a([]),position:b.position,absolutePosition:b.positionAbs,offset:b.positionAbs,item:b.currentItem,sender:c?c.element:null}}}));a.extend(a.ui.sortable,{getter:&quot;serialize toArray&quot;,version:&quot;1.7.2&quot;,eventPrefix:&quot;sort&quot;,defaults:{appendTo:&quot;parent&quot;,axis:false,cancel:&quot;:input,option&quot;,connectWith:false,containment:false,cursor:&quot;auto&quot;,cursorAt:false,delay:0,distance:1,dropOnEmpty:true,forcePlaceholderSize:false,forceHelperSize:false,grid:false,handle:false,helper:&quot;original&quot;,items:&quot;&gt; *&quot;,opacity:false,placeholder:false,revert:false,scroll:true,scrollSensitivity:20,scrollSpeed:20,scope:&quot;default&quot;,tolerance:&quot;intersect&quot;,zIndex:1000}})})(jQuery);
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkwpincludesjsjqueryuitabsjs"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/js/jquery/ui.tabs.js (13200 => 13201)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/js/jquery/ui.tabs.js        2010-02-18 20:08:35 UTC (rev 13200)
+++ trunk/wp-includes/js/jquery/ui.tabs.js        2010-02-18 20:49:16 UTC (rev 13201)
</span><span class="lines">@@ -1,5 +1,5 @@
</span><span class="cx"> /*
</span><del>- * jQuery UI Tabs 1.7.1
</del><ins>+ * jQuery UI Tabs 1.7.2
</ins><span class="cx">  *
</span><span class="cx">  * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about)
</span><span class="cx">  * Dual licensed under the MIT (MIT-LICENSE.txt)
</span><span class="lines">@@ -10,4 +10,4 @@
</span><span class="cx">  * Depends:
</span><span class="cx">  *        ui.core.js
</span><span class="cx">  */
</span><del>-(function(a){a.widget(&quot;ui.tabs&quot;,{_init:function(){if(this.options.deselectable!==undefined){this.options.collapsible=this.options.deselectable}this._tabify(true)},_setData:function(b,c){if(b==&quot;selected&quot;){if(this.options.collapsible&amp;&amp;c==this.options.selected){return}this.select(c)}else{this.options[b]=c;if(b==&quot;deselectable&quot;){this.options.collapsible=c}this._tabify()}},_tabId:function(b){return b.title&amp;&amp;b.title.replace(/\s/g,&quot;_&quot;).replace(/[^A-Za-z0-9\-_:\.]/g,&quot;&quot;)||this.options.idPrefix+a.data(b)},_sanitizeSelector:function(b){return b.replace(/:/g,&quot;\\:&quot;)},_cookie:function(){var b=this.cookie||(this.cookie=this.options.cookie.name||&quot;ui-tabs-&quot;+a.data(this.list[0]));return a.cookie.apply(null,[b].concat(a.makeArray(arguments)))},_ui:function(c,b){return{tab:c,panel:b,index:this.anchors.index(c)}},_cleanup:function(){this.lis.filter(&quot;.ui-state-processing&quot;).removeClass(&quot;ui-state-processing&quot;).find(&quot;span:data(label.tabs)&quot;).each(function(){var b=a(this);b.html(b.data(&quot;label.tabs&quot;)).removeData(&quot;label.tabs&quot;)})},_tabify:function(n){this.list=this.element.children(&quot;ul:first&quot;);this.lis=a(&quot;li:has(a[href])&quot;,this.list);this.anchors=this.lis.map(function(){return a(&quot;a&quot;,this)[0]});this.panels=a([]);var p=this,d=this.options;var c=/^#.+/;this.anchors.each(function(r,o){var q=a(o).attr(&quot;href&quot;);var s=q.split(&quot;#&quot;)[0],u;if(s&amp;&amp;(s===location.toString().split(&quot;#&quot;)[0]||(u=a(&quot;base&quot;)[0])&amp;&amp;s===u.href)){q=o.hash;o.href=q}if(c.test(q)){p.panels=p.panels.add(p._sanitizeSelector(q))}else{if(q!=&quot;#&quot;){a.data(o,&quot;href.tabs&quot;,q);a.data(o,&quot;load.tabs&quot;,q.replace(/#.*$/,&quot;&quot;));var w=p._tabId(o);o.href=&quot;#&quot;+w;var v=a(&quot;#&quot;+w);if(!v.length){v=a(d.panelTemplate).attr(&quot;id&quot;,w).addClass(&quot;ui-tabs-panel ui-widget-content ui-corner-bottom&quot;).insertAfter(p.panels[r-1]||p.list);v.data(&quot;destroy.tabs&quot;,true)}p.panels=p.panels.add(v)}else{d.disabled.push(r)}}});if(n){this.element.addClass(&quot;ui-tabs ui-widget ui-widget-content ui-corner-all&quot;);this.list.addClass(&quot;ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all&quot;);this.lis.addClass(&quot;ui-state-default ui-corner-top&quot;);this.panels.addClass(&quot;ui-tabs-panel ui-widget-content ui-corner-bottom&quot;);if(d.selected===undefined){if(location.hash){this.anchors.each(function(q,o){if(o.hash==location.hash){d.selected=q;return false}})}if(typeof d.selected!=&quot;number&quot;&amp;&amp;d.cookie){d.selected=parseInt(p._cookie(),10)}if(typeof d.selected!=&quot;number&quot;&amp;&amp;this.lis.filter(&quot;.ui-tabs-selected&quot;).length){d.selected=this.lis.index(this.lis.filter(&quot;.ui-tabs-selected&quot;))}d.selected=d.selected||0}else{if(d.selected===null){d.selected=-1}}d.selected=((d.selected&gt;=0&amp;&amp;this.anchors[d.selected])||d.selected&lt;0)?d.selected:0;d.disabled=a.unique(d.disabled.concat(a.map(this.lis.filter(&quot;.ui-state-disabled&quot;),function(q,o){return p.lis.index(q)}))).sort();if(a.inArray(d.selected,d.disabled)!=-1){d.disabled.splice(a.inArray(d.selected,d.disabled),1)}this.panels.addClass(&quot;ui-tabs-hide&quot;);this.lis.removeClass(&quot;ui-tabs-selected ui-state-active&quot;);if(d.selected&gt;=0&amp;&amp;this.anchors.length){this.panels.eq(d.selected).removeClass(&quot;ui-tabs-hide&quot;);this.lis.eq(d.selected).addClass(&quot;ui-tabs-selected ui-state-active&quot;);p.element.queue(&quot;tabs&quot;,function(){p._trigger(&quot;show&quot;,null,p._ui(p.anchors[d.selected],p.panels[d.selected]))});this.load(d.selected)}a(window).bind(&quot;unload&quot;,function(){p.lis.add(p.anchors).unbind(&quot;.tabs&quot;);p.lis=p.anchors=p.panels=null})}else{d.selected=this.lis.index(this.lis.filter(&quot;.ui-tabs-selected&quot;))}this.element[d.collapsible?&quot;addClass&quot;:&quot;removeClass&quot;](&quot;ui-tabs-collapsible&quot;);if(d.cookie){this._cookie(d.selected,d.cookie)}for(var g=0,m;(m=this.lis[g]);g++){a(m)[a.inArray(g,d.disabled)!=-1&amp;&amp;!a(m).hasClass(&quot;ui-tabs-selected&quot;)?&quot;addClass&quot;:&quot;removeClass&quot;](&quot;ui-state-disabled&quot;)}if(d.cache===false){this.anchors.removeData(&quot;cache.tabs&quot;)}this.lis.add(this.anchors).unbind(&quot;.tabs&quot;);if(d.event!=&quot;mouseover&quot;){var f=function(o,i){if(i.is(&quot;:not(.ui-state-disabled)&quot;)){i.addClass(&quot;ui-state-&quot;+o)}};var j=function(o,i){i.removeClass(&quot;ui-state-&quot;+o)};this.lis.bind(&quot;mouseover.tabs&quot;,function(){f(&quot;hover&quot;,a(this))});this.lis.bind(&quot;mouseout.tabs&quot;,function(){j(&quot;hover&quot;,a(this))});this.anchors.bind(&quot;focus.tabs&quot;,function(){f(&quot;focus&quot;,a(this).closest(&quot;li&quot;))});this.anchors.bind(&quot;blur.tabs&quot;,function(){j(&quot;focus&quot;,a(this).closest(&quot;li&quot;))})}var b,h;if(d.fx){if(a.isArray(d.fx)){b=d.fx[0];h=d.fx[1]}else{b=h=d.fx}}function e(i,o){i.css({display:&quot;&quot;});if(a.browser.msie&amp;&amp;o.opacity){i[0].style.removeAttribute(&quot;filter&quot;)}}var k=h?function(i,o){a(i).closest(&quot;li&quot;).removeClass(&quot;ui-state-default&quot;).addClass(&quot;ui-tabs-selected ui-state-active&quot;);o.hide().removeClass(&quot;ui-tabs-hide&quot;).animate(h,h.duration||&quot;normal&quot;,function(){e(o,h);p._trigger(&quot;show&quot;,null,p._ui(i,o[0]))})}:function(i,o){a(i).closest(&quot;li&quot;).removeClass(&quot;ui-state-default&quot;).addClass(&quot;ui-tabs-selected ui-state-active&quot;);o.removeClass(&quot;ui-tabs-hide&quot;);p._trigger(&quot;show&quot;,null,p._ui(i,o[0]))};var l=b?function(o,i){i.animate(b,b.duration||&quot;normal&quot;,function(){p.lis.removeClass(&quot;ui-tabs-selected ui-state-active&quot;).addClass(&quot;ui-state-default&quot;);i.addClass(&quot;ui-tabs-hide&quot;);e(i,b);p.element.dequeue(&quot;tabs&quot;)})}:function(o,i,q){p.lis.removeClass(&quot;ui-tabs-selected ui-state-active&quot;).addClass(&quot;ui-state-default&quot;);i.addClass(&quot;ui-tabs-hide&quot;);p.element.dequeue(&quot;tabs&quot;)};this.anchors.bind(d.event+&quot;.tabs&quot;,function(){var o=this,r=a(this).closest(&quot;li&quot;),i=p.panels.filter(&quot;:not(.ui-tabs-hide)&quot;),q=a(p._sanitizeSelector(this.hash));if((r.hasClass(&quot;ui-tabs-selected&quot;)&amp;&amp;!d.collapsible)||r.hasClass(&quot;ui-state-disabled&quot;)||r.hasClass(&quot;ui-state-processing&quot;)||p._trigger(&quot;select&quot;,null,p._ui(this,q[0]))===false){this.blur();return false}d.selected=p.anchors.index(this);p.abort();if(d.collapsible){if(r.hasClass(&quot;ui-tabs-selected&quot;)){d.selected=-1;if(d.cookie){p._cookie(d.selected,d.cookie)}p.element.queue(&quot;tabs&quot;,function(){l(o,i)}).dequeue(&quot;tabs&quot;);this.blur();return false}else{if(!i.length){if(d.cookie){p._cookie(d.selected,d.cookie)}p.element.queue(&quot;tabs&quot;,function(){k(o,q)});p.load(p.anchors.index(this));this.blur();return false}}}if(d.cookie){p._cookie(d.selected,d.cookie)}if(q.length){if(i.length){p.element.queue(&quot;tabs&quot;,function(){l(o,i)})}p.element.queue(&quot;tabs&quot;,function(){k(o,q)});p.load(p.anchors.index(this))}else{throw&quot;jQuery UI Tabs: Mismatching fragment identifier.&quot;}if(a.browser.msie){this.blur()}});this.anchors.bind(&quot;click.tabs&quot;,function(){return false})},destroy:function(){var b=this.options;this.abort();this.element.unbind(&quot;.tabs&quot;).removeClass(&quot;ui-tabs ui-widget ui-widget-content ui-corner-all ui-tabs-collapsible&quot;).removeData(&quot;tabs&quot;);this.list.removeClass(&quot;ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all&quot;);this.anchors.each(function(){var c=a.data(this,&quot;href.tabs&quot;);if(c){this.href=c}var d=a(this).unbind(&quot;.tabs&quot;);a.each([&quot;href&quot;,&quot;load&quot;,&quot;cache&quot;],function(e,f){d.removeData(f+&quot;.tabs&quot;)})});this.lis.unbind(&quot;.tabs&quot;).add(this.panels).each(function(){if(a.data(this,&quot;destroy.tabs&quot;)){a(this).remove()}else{a(this).removeClass([&quot;ui-state-default&quot;,&quot;ui-corner-top&quot;,&quot;ui-tabs-selected&quot;,&quot;ui-state-active&quot;,&quot;ui-state-hover&quot;,&quot;ui-state-focus&quot;,&quot;ui-state-disabled&quot;,&quot;ui-tabs-panel&quot;,&quot;ui-widget-content&quot;,&quot;ui-corner-bottom&quot;,&quot;ui-tabs-hide&quot;].join(&quot; &quot;))}});if(b.cookie){this._cookie(null,b.cookie)}},add:function(e,d,c){if(c===undefined){c=this.anchors.length}var b=this,g=this.options,i=a(g.tabTemplate.replace(/#\{href\}/g,e).replace(/#\{label\}/g,d)),h=!e.indexOf(&quot;#&quot;)?e.replace(&quot;#&quot;,&quot;&quot;):this._tabId(a(&quot;a&quot;,i)[0]);i.addClass(&quot;ui-state-default ui-corner-top&quot;).data(&quot;destroy.tabs&quot;,true);var f=a(&quot;#&quot;+h);if(!f.length){f=a(g.panelTemplate).attr(&quot;id&quot;,h).data(&quot;destroy.tabs&quot;,true)}f.addClass(&quot;ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide&quot;);if(c&gt;=this.lis.length){i.appendTo(this.list);f.appendTo(this.list[0].parentNode)}else{i.insertBefore(this.lis[c]);f.insertBefore(this.panels[c])}g.disabled=a.map(g.disabled,function(k,j){return k&gt;=c?++k:k});this._tabify();if(this.anchors.length==1){i.addClass(&quot;ui-tabs-selected ui-state-active&quot;);f.removeClass(&quot;ui-tabs-hide&quot;);this.element.queue(&quot;tabs&quot;,function(){b._trigger(&quot;show&quot;,null,b._ui(b.anchors[0],b.panels[0]))});this.load(0)}this._trigger(&quot;add&quot;,null,this._ui(this.anchors[c],this.panels[c]))},remove:function(b){var d=this.options,e=this.lis.eq(b).remove(),c=this.panels.eq(b).remove();if(e.hasClass(&quot;ui-tabs-selected&quot;)&amp;&amp;this.anchors.length&gt;1){this.select(b+(b+1&lt;this.anchors.length?1:-1))}d.disabled=a.map(a.grep(d.disabled,function(g,f){return g!=b}),function(g,f){return g&gt;=b?--g:g});this._tabify();this._trigger(&quot;remove&quot;,null,this._ui(e.find(&quot;a&quot;)[0],c[0]))},enable:function(b){var c=this.options;if(a.inArray(b,c.disabled)==-1){return}this.lis.eq(b).removeClass(&quot;ui-state-disabled&quot;);c.disabled=a.grep(c.disabled,function(e,d){return e!=b});this._trigger(&quot;enable&quot;,null,this._ui(this.anchors[b],this.panels[b]))},disable:function(c){var b=this,d=this.options;if(c!=d.selected){this.lis.eq(c).addClass(&quot;ui-state-disabled&quot;);d.disabled.push(c);d.disabled.sort();this._trigger(&quot;disable&quot;,null,this._ui(this.anchors[c],this.panels[c]))}},select:function(b){if(typeof b==&quot;string&quot;){b=this.anchors.index(this.anchors.filter(&quot;[href$=&quot;+b+&quot;]&quot;))}else{if(b===null){b=-1}}if(b==-1&amp;&amp;this.options.collapsible){b=this.options.selected}this.anchors.eq(b).trigger(this.options.event+&quot;.tabs&quot;)},load:function(e){var c=this,g=this.options,b=this.anchors.eq(e)[0],d=a.data(b,&quot;load.tabs&quot;);this.abort();if(!d||this.element.queue(&quot;tabs&quot;).length!==0&amp;&amp;a.data(b,&quot;cache.tabs&quot;)){this.element.dequeue(&quot;tabs&quot;);return}this.lis.eq(e).addClass(&quot;ui-state-processing&quot;);if(g.spinner){var f=a(&quot;span&quot;,b);f.data(&quot;label.tabs&quot;,f.html()).html(g.spinner)}this.xhr=a.ajax(a.extend({},g.ajaxOptions,{url:d,success:function(i,h){a(c._sanitizeSelector(b.hash)).html(i);c._cleanup();if(g.cache){a.data(b,&quot;cache.tabs&quot;,true)}c._trigger(&quot;load&quot;,null,c._ui(c.anchors[e],c.panels[e]));try{g.ajaxOptions.success(i,h)}catch(j){}c.element.dequeue(&quot;tabs&quot;)}}))},abort:function(){this.element.queue([]);this.panels.stop(false,true);if(this.xhr){this.xhr.abort();delete this.xhr}this._cleanup()},url:function(c,b){this.anchors.eq(c).removeData(&quot;cache.tabs&quot;).data(&quot;load.tabs&quot;,b)},length:function(){return this.anchors.length}});a.extend(a.ui.tabs,{version:&quot;1.7.1&quot;,getter:&quot;length&quot;,defaults:{ajaxOptions:null,cache:false,cookie:null,collapsible:false,disabled:[],event:&quot;click&quot;,fx:null,idPrefix:&quot;ui-tabs-&quot;,panelTemplate:&quot;&lt;div&gt;&lt;/div&gt;&quot;,spinner:&quot;&lt;em&gt;Loading&amp;#8230;&lt;/em&gt;&quot;,tabTemplate:'&lt;li&gt;&lt;a href=&quot;#{href}&quot;&gt;&lt;span&gt;#{label}&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;'}});a.extend(a.ui.tabs.prototype,{rotation:null,rotate:function(d,f){var b=this,g=this.options;var c=b._rotate||(b._rotate=function(h){clearTimeout(b.rotation);b.rotation=setTimeout(function(){var i=g.selected;b.select(++i&lt;b.anchors.length?i:0)},d);if(h){h.stopPropagation()}});var e=b._unrotate||(b._unrotate=!f?function(h){if(h.clientX){b.rotate(null)}}:function(h){t=g.selected;c()});if(d){this.element.bind(&quot;tabsshow&quot;,c);this.anchors.bind(g.event+&quot;.tabs&quot;,e);c()}else{clearTimeout(b.rotation);this.element.unbind(&quot;tabsshow&quot;,c);this.anchors.unbind(g.event+&quot;.tabs&quot;,e);delete this._rotate;delete this._unrotate}}})})(jQuery);
</del><span class="cx">\ No newline at end of file
</span><ins>+(function(a){a.widget(&quot;ui.tabs&quot;,{_init:function(){if(this.options.deselectable!==undefined){this.options.collapsible=this.options.deselectable}this._tabify(true)},_setData:function(b,c){if(b==&quot;selected&quot;){if(this.options.collapsible&amp;&amp;c==this.options.selected){return}this.select(c)}else{this.options[b]=c;if(b==&quot;deselectable&quot;){this.options.collapsible=c}this._tabify()}},_tabId:function(b){return b.title&amp;&amp;b.title.replace(/\s/g,&quot;_&quot;).replace(/[^A-Za-z0-9\-_:\.]/g,&quot;&quot;)||this.options.idPrefix+a.data(b)},_sanitizeSelector:function(b){return b.replace(/:/g,&quot;\\:&quot;)},_cookie:function(){var b=this.cookie||(this.cookie=this.options.cookie.name||&quot;ui-tabs-&quot;+a.data(this.list[0]));return a.cookie.apply(null,[b].concat(a.makeArray(arguments)))},_ui:function(c,b){return{tab:c,panel:b,index:this.anchors.index(c)}},_cleanup:function(){this.lis.filter(&quot;.ui-state-processing&quot;).removeClass(&quot;ui-state-processing&quot;).find(&quot;span:data(label.tabs)&quot;).each(function(){var b=a(this);b.html(b.data(&quot;label.tabs&quot;)).removeData(&quot;label.tabs&quot;)})},_tabify:function(n){this.list=this.element.children(&quot;ul:first&quot;);this.lis=a(&quot;li:has(a[href])&quot;,this.list);this.anchors=this.lis.map(function(){return a(&quot;a&quot;,this)[0]});this.panels=a([]);var p=this,d=this.options;var c=/^#.+/;this.anchors.each(function(r,o){var q=a(o).attr(&quot;href&quot;);var s=q.split(&quot;#&quot;)[0],u;if(s&amp;&amp;(s===location.toString().split(&quot;#&quot;)[0]||(u=a(&quot;base&quot;)[0])&amp;&amp;s===u.href)){q=o.hash;o.href=q}if(c.test(q)){p.panels=p.panels.add(p._sanitizeSelector(q))}else{if(q!=&quot;#&quot;){a.data(o,&quot;href.tabs&quot;,q);a.data(o,&quot;load.tabs&quot;,q.replace(/#.*$/,&quot;&quot;));var w=p._tabId(o);o.href=&quot;#&quot;+w;var v=a(&quot;#&quot;+w);if(!v.length){v=a(d.panelTemplate).attr(&quot;id&quot;,w).addClass(&quot;ui-tabs-panel ui-widget-content ui-corner-bottom&quot;).insertAfter(p.panels[r-1]||p.list);v.data(&quot;destroy.tabs&quot;,true)}p.panels=p.panels.add(v)}else{d.disabled.push(r)}}});if(n){this.element.addClass(&quot;ui-tabs ui-widget ui-widget-content ui-corner-all&quot;);this.list.addClass(&quot;ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all&quot;);this.lis.addClass(&quot;ui-state-default ui-corner-top&quot;);this.panels.addClass(&quot;ui-tabs-panel ui-widget-content ui-corner-bottom&quot;);if(d.selected===undefined){if(location.hash){this.anchors.each(function(q,o){if(o.hash==location.hash){d.selected=q;return false}})}if(typeof d.selected!=&quot;number&quot;&amp;&amp;d.cookie){d.selected=parseInt(p._cookie(),10)}if(typeof d.selected!=&quot;number&quot;&amp;&amp;this.lis.filter(&quot;.ui-tabs-selected&quot;).length){d.selected=this.lis.index(this.lis.filter(&quot;.ui-tabs-selected&quot;))}d.selected=d.selected||0}else{if(d.selected===null){d.selected=-1}}d.selected=((d.selected&gt;=0&amp;&amp;this.anchors[d.selected])||d.selected&lt;0)?d.selected:0;d.disabled=a.unique(d.disabled.concat(a.map(this.lis.filter(&quot;.ui-state-disabled&quot;),function(q,o){return p.lis.index(q)}))).sort();if(a.inArray(d.selected,d.disabled)!=-1){d.disabled.splice(a.inArray(d.selected,d.disabled),1)}this.panels.addClass(&quot;ui-tabs-hide&quot;);this.lis.removeClass(&quot;ui-tabs-selected ui-state-active&quot;);if(d.selected&gt;=0&amp;&amp;this.anchors.length){this.panels.eq(d.selected).removeClass(&quot;ui-tabs-hide&quot;);this.lis.eq(d.selected).addClass(&quot;ui-tabs-selected ui-state-active&quot;);p.element.queue(&quot;tabs&quot;,function(){p._trigger(&quot;show&quot;,null,p._ui(p.anchors[d.selected],p.panels[d.selected]))});this.load(d.selected)}a(window).bind(&quot;unload&quot;,function(){p.lis.add(p.anchors).unbind(&quot;.tabs&quot;);p.lis=p.anchors=p.panels=null})}else{d.selected=this.lis.index(this.lis.filter(&quot;.ui-tabs-selected&quot;))}this.element[d.collapsible?&quot;addClass&quot;:&quot;removeClass&quot;](&quot;ui-tabs-collapsible&quot;);if(d.cookie){this._cookie(d.selected,d.cookie)}for(var g=0,m;(m=this.lis[g]);g++){a(m)[a.inArray(g,d.disabled)!=-1&amp;&amp;!a(m).hasClass(&quot;ui-tabs-selected&quot;)?&quot;addClass&quot;:&quot;removeClass&quot;](&quot;ui-state-disabled&quot;)}if(d.cache===false){this.anchors.removeData(&quot;cache.tabs&quot;)}this.lis.add(this.anchors).unbind(&quot;.tabs&quot;);if(d.event!=&quot;mouseover&quot;){var f=function(o,i){if(i.is(&quot;:not(.ui-state-disabled)&quot;)){i.addClass(&quot;ui-state-&quot;+o)}};var j=function(o,i){i.removeClass(&quot;ui-state-&quot;+o)};this.lis.bind(&quot;mouseover.tabs&quot;,function(){f(&quot;hover&quot;,a(this))});this.lis.bind(&quot;mouseout.tabs&quot;,function(){j(&quot;hover&quot;,a(this))});this.anchors.bind(&quot;focus.tabs&quot;,function(){f(&quot;focus&quot;,a(this).closest(&quot;li&quot;))});this.anchors.bind(&quot;blur.tabs&quot;,function(){j(&quot;focus&quot;,a(this).closest(&quot;li&quot;))})}var b,h;if(d.fx){if(a.isArray(d.fx)){b=d.fx[0];h=d.fx[1]}else{b=h=d.fx}}function e(i,o){i.css({display:&quot;&quot;});if(a.browser.msie&amp;&amp;o.opacity){i[0].style.removeAttribute(&quot;filter&quot;)}}var k=h?function(i,o){a(i).closest(&quot;li&quot;).removeClass(&quot;ui-state-default&quot;).addClass(&quot;ui-tabs-selected ui-state-active&quot;);o.hide().removeClass(&quot;ui-tabs-hide&quot;).animate(h,h.duration||&quot;normal&quot;,function(){e(o,h);p._trigger(&quot;show&quot;,null,p._ui(i,o[0]))})}:function(i,o){a(i).closest(&quot;li&quot;).removeClass(&quot;ui-state-default&quot;).addClass(&quot;ui-tabs-selected ui-state-active&quot;);o.removeClass(&quot;ui-tabs-hide&quot;);p._trigger(&quot;show&quot;,null,p._ui(i,o[0]))};var l=b?function(o,i){i.animate(b,b.duration||&quot;normal&quot;,function(){p.lis.removeClass(&quot;ui-tabs-selected ui-state-active&quot;).addClass(&quot;ui-state-default&quot;);i.addClass(&quot;ui-tabs-hide&quot;);e(i,b);p.element.dequeue(&quot;tabs&quot;)})}:function(o,i,q){p.lis.removeClass(&quot;ui-tabs-selected ui-state-active&quot;).addClass(&quot;ui-state-default&quot;);i.addClass(&quot;ui-tabs-hide&quot;);p.element.dequeue(&quot;tabs&quot;)};this.anchors.bind(d.event+&quot;.tabs&quot;,function(){var o=this,r=a(this).closest(&quot;li&quot;),i=p.panels.filter(&quot;:not(.ui-tabs-hide)&quot;),q=a(p._sanitizeSelector(this.hash));if((r.hasClass(&quot;ui-tabs-selected&quot;)&amp;&amp;!d.collapsible)||r.hasClass(&quot;ui-state-disabled&quot;)||r.hasClass(&quot;ui-state-processing&quot;)||p._trigger(&quot;select&quot;,null,p._ui(this,q[0]))===false){this.blur();return false}d.selected=p.anchors.index(this);p.abort();if(d.collapsible){if(r.hasClass(&quot;ui-tabs-selected&quot;)){d.selected=-1;if(d.cookie){p._cookie(d.selected,d.cookie)}p.element.queue(&quot;tabs&quot;,function(){l(o,i)}).dequeue(&quot;tabs&quot;);this.blur();return false}else{if(!i.length){if(d.cookie){p._cookie(d.selected,d.cookie)}p.element.queue(&quot;tabs&quot;,function(){k(o,q)});p.load(p.anchors.index(this));this.blur();return false}}}if(d.cookie){p._cookie(d.selected,d.cookie)}if(q.length){if(i.length){p.element.queue(&quot;tabs&quot;,function(){l(o,i)})}p.element.queue(&quot;tabs&quot;,function(){k(o,q)});p.load(p.anchors.index(this))}else{throw&quot;jQuery UI Tabs: Mismatching fragment identifier.&quot;}if(a.browser.msie){this.blur()}});this.anchors.bind(&quot;click.tabs&quot;,function(){return false})},destroy:function(){var b=this.options;this.abort();this.element.unbind(&quot;.tabs&quot;).removeClass(&quot;ui-tabs ui-widget ui-widget-content ui-corner-all ui-tabs-collapsible&quot;).removeData(&quot;tabs&quot;);this.list.removeClass(&quot;ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all&quot;);this.anchors.each(function(){var c=a.data(this,&quot;href.tabs&quot;);if(c){this.href=c}var d=a(this).unbind(&quot;.tabs&quot;);a.each([&quot;href&quot;,&quot;load&quot;,&quot;cache&quot;],function(e,f){d.removeData(f+&quot;.tabs&quot;)})});this.lis.unbind(&quot;.tabs&quot;).add(this.panels).each(function(){if(a.data(this,&quot;destroy.tabs&quot;)){a(this).remove()}else{a(this).removeClass([&quot;ui-state-default&quot;,&quot;ui-corner-top&quot;,&quot;ui-tabs-selected&quot;,&quot;ui-state-active&quot;,&quot;ui-state-hover&quot;,&quot;ui-state-focus&quot;,&quot;ui-state-disabled&quot;,&quot;ui-tabs-panel&quot;,&quot;ui-widget-content&quot;,&quot;ui-corner-bottom&quot;,&quot;ui-tabs-hide&quot;].join(&quot; &quot;))}});if(b.cookie){this._cookie(null,b.cookie)}},add:function(e,d,c){if(c===undefined){c=this.anchors.length}var b=this,g=this.options,i=a(g.tabTemplate.replace(/#\{href\}/g,e).replace(/#\{label\}/g,d)),h=!e.indexOf(&quot;#&quot;)?e.replace(&quot;#&quot;,&quot;&quot;):this._tabId(a(&quot;a&quot;,i)[0]);i.addClass(&quot;ui-state-default ui-corner-top&quot;).data(&quot;destroy.tabs&quot;,true);var f=a(&quot;#&quot;+h);if(!f.length){f=a(g.panelTemplate).attr(&quot;id&quot;,h).data(&quot;destroy.tabs&quot;,true)}f.addClass(&quot;ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide&quot;);if(c&gt;=this.lis.length){i.appendTo(this.list);f.appendTo(this.list[0].parentNode)}else{i.insertBefore(this.lis[c]);f.insertBefore(this.panels[c])}g.disabled=a.map(g.disabled,function(k,j){return k&gt;=c?++k:k});this._tabify();if(this.anchors.length==1){i.addClass(&quot;ui-tabs-selected ui-state-active&quot;);f.removeClass(&quot;ui-tabs-hide&quot;);this.element.queue(&quot;tabs&quot;,function(){b._trigger(&quot;show&quot;,null,b._ui(b.anchors[0],b.panels[0]))});this.load(0)}this._trigger(&quot;add&quot;,null,this._ui(this.anchors[c],this.panels[c]))},remove:function(b){var d=this.options,e=this.lis.eq(b).remove(),c=this.panels.eq(b).remove();if(e.hasClass(&quot;ui-tabs-selected&quot;)&amp;&amp;this.anchors.length&gt;1){this.select(b+(b+1&lt;this.anchors.length?1:-1))}d.disabled=a.map(a.grep(d.disabled,function(g,f){return g!=b}),function(g,f){return g&gt;=b?--g:g});this._tabify();this._trigger(&quot;remove&quot;,null,this._ui(e.find(&quot;a&quot;)[0],c[0]))},enable:function(b){var c=this.options;if(a.inArray(b,c.disabled)==-1){return}this.lis.eq(b).removeClass(&quot;ui-state-disabled&quot;);c.disabled=a.grep(c.disabled,function(e,d){return e!=b});this._trigger(&quot;enable&quot;,null,this._ui(this.anchors[b],this.panels[b]))},disable:function(c){var b=this,d=this.options;if(c!=d.selected){this.lis.eq(c).addClass(&quot;ui-state-disabled&quot;);d.disabled.push(c);d.disabled.sort();this._trigger(&quot;disable&quot;,null,this._ui(this.anchors[c],this.panels[c]))}},select:function(b){if(typeof b==&quot;string&quot;){b=this.anchors.index(this.anchors.filter(&quot;[href$=&quot;+b+&quot;]&quot;))}else{if(b===null){b=-1}}if(b==-1&amp;&amp;this.options.collapsible){b=this.options.selected}this.anchors.eq(b).trigger(this.options.event+&quot;.tabs&quot;)},load:function(e){var c=this,g=this.options,b=this.anchors.eq(e)[0],d=a.data(b,&quot;load.tabs&quot;);this.abort();if(!d||this.element.queue(&quot;tabs&quot;).length!==0&amp;&amp;a.data(b,&quot;cache.tabs&quot;)){this.element.dequeue(&quot;tabs&quot;);return}this.lis.eq(e).addClass(&quot;ui-state-processing&quot;);if(g.spinner){var f=a(&quot;span&quot;,b);f.data(&quot;label.tabs&quot;,f.html()).html(g.spinner)}this.xhr=a.ajax(a.extend({},g.ajaxOptions,{url:d,success:function(i,h){a(c._sanitizeSelector(b.hash)).html(i);c._cleanup();if(g.cache){a.data(b,&quot;cache.tabs&quot;,true)}c._trigger(&quot;load&quot;,null,c._ui(c.anchors[e],c.panels[e]));try{g.ajaxOptions.success(i,h)}catch(j){}c.element.dequeue(&quot;tabs&quot;)}}))},abort:function(){this.element.queue([]);this.panels.stop(false,true);if(this.xhr){this.xhr.abort();delete this.xhr}this._cleanup()},url:function(c,b){this.anchors.eq(c).removeData(&quot;cache.tabs&quot;).data(&quot;load.tabs&quot;,b)},length:function(){return this.anchors.length}});a.extend(a.ui.tabs,{version:&quot;1.7.2&quot;,getter:&quot;length&quot;,defaults:{ajaxOptions:null,cache:false,cookie:null,collapsible:false,disabled:[],event:&quot;click&quot;,fx:null,idPrefix:&quot;ui-tabs-&quot;,panelTemplate:&quot;&lt;div&gt;&lt;/div&gt;&quot;,spinner:&quot;&lt;em&gt;Loading&amp;#8230;&lt;/em&gt;&quot;,tabTemplate:'&lt;li&gt;&lt;a href=&quot;#{href}&quot;&gt;&lt;span&gt;#{label}&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;'}});a.extend(a.ui.tabs.prototype,{rotation:null,rotate:function(d,f){var b=this,g=this.options;var c=b._rotate||(b._rotate=function(h){clearTimeout(b.rotation);b.rotation=setTimeout(function(){var i=g.selected;b.select(++i&lt;b.anchors.length?i:0)},d);if(h){h.stopPropagation()}});var e=b._unrotate||(b._unrotate=!f?function(h){if(h.clientX){b.rotate(null)}}:function(h){t=g.selected;c()});if(d){this.element.bind(&quot;tabsshow&quot;,c);this.anchors.bind(g.event+&quot;.tabs&quot;,e);c()}else{clearTimeout(b.rotation);this.element.unbind(&quot;tabsshow&quot;,c);this.anchors.unbind(g.event+&quot;.tabs&quot;,e);delete this._rotate;delete this._unrotate}}})})(jQuery);
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkwpincludesscriptloaderphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/script-loader.php (13200 => 13201)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/script-loader.php        2010-02-18 20:08:35 UTC (rev 13200)
+++ trunk/wp-includes/script-loader.php        2010-02-18 20:49:16 UTC (rev 13201)
</span><span class="lines">@@ -118,28 +118,28 @@
</span><span class="cx"> 
</span><span class="cx">         $scripts-&gt;add( 'jquery', '/wp-includes/js/jquery/jquery.js', false, '1.4.1');
</span><span class="cx"> 
</span><del>-        $scripts-&gt;add( 'jquery-ui-core', '/wp-includes/js/jquery/ui.core.js', array('jquery'), '1.7.1' );
</del><ins>+        $scripts-&gt;add( 'jquery-ui-core', '/wp-includes/js/jquery/ui.core.js', array('jquery'), '1.7.2' );
</ins><span class="cx">         $scripts-&gt;add_data( 'jquery-ui-core', 'group', 1 );
</span><span class="cx"> 
</span><del>-        $scripts-&gt;add( 'jquery-ui-tabs', '/wp-includes/js/jquery/ui.tabs.js', array('jquery-ui-core'), '1.7.1' );
</del><ins>+        $scripts-&gt;add( 'jquery-ui-tabs', '/wp-includes/js/jquery/ui.tabs.js', array('jquery-ui-core'), '1.7.2' );
</ins><span class="cx">         $scripts-&gt;add_data( 'jquery-ui-tabs', 'group', 1 );
</span><span class="cx"> 
</span><del>-        $scripts-&gt;add( 'jquery-ui-sortable', '/wp-includes/js/jquery/ui.sortable.js', array('jquery-ui-core'), '1.7.1' );
</del><ins>+        $scripts-&gt;add( 'jquery-ui-sortable', '/wp-includes/js/jquery/ui.sortable.js', array('jquery-ui-core'), '1.7.2' );
</ins><span class="cx">         $scripts-&gt;add_data( 'jquery-ui-sortable', 'group', 1 );
</span><span class="cx"> 
</span><del>-        $scripts-&gt;add( 'jquery-ui-draggable', '/wp-includes/js/jquery/ui.draggable.js', array('jquery-ui-core'), '1.7.1' );
</del><ins>+        $scripts-&gt;add( 'jquery-ui-draggable', '/wp-includes/js/jquery/ui.draggable.js', array('jquery-ui-core'), '1.7.2' );
</ins><span class="cx">         $scripts-&gt;add_data( 'jquery-ui-draggable', 'group', 1 );
</span><span class="cx"> 
</span><del>-        $scripts-&gt;add( 'jquery-ui-droppable', '/wp-includes/js/jquery/ui.droppable.js', array('jquery-ui-core'), '1.7.1' );
</del><ins>+        $scripts-&gt;add( 'jquery-ui-droppable', '/wp-includes/js/jquery/ui.droppable.js', array('jquery-ui-core'), '1.7.2' );
</ins><span class="cx">         $scripts-&gt;add_data( 'jquery-ui-droppable', 'group', 1 );
</span><span class="cx"> 
</span><del>-        $scripts-&gt;add( 'jquery-ui-selectable', '/wp-includes/js/jquery/ui.selectable.js', array('jquery-ui-core'), '1.7.1' );
</del><ins>+        $scripts-&gt;add( 'jquery-ui-selectable', '/wp-includes/js/jquery/ui.selectable.js', array('jquery-ui-core'), '1.7.2' );
</ins><span class="cx">         $scripts-&gt;add_data( 'jquery-ui-selectable', 'group', 1 );
</span><span class="cx"> 
</span><del>-        $scripts-&gt;add( 'jquery-ui-resizable', '/wp-includes/js/jquery/ui.resizable.js', array('jquery-ui-core'), '1.7.1' );
</del><ins>+        $scripts-&gt;add( 'jquery-ui-resizable', '/wp-includes/js/jquery/ui.resizable.js', array('jquery-ui-core'), '1.7.2' );
</ins><span class="cx">         $scripts-&gt;add_data( 'jquery-ui-resizable', 'group', 1 );
</span><span class="cx"> 
</span><del>-        $scripts-&gt;add( 'jquery-ui-dialog', '/wp-includes/js/jquery/ui.dialog.js', array('jquery-ui-resizable', 'jquery-ui-draggable'), '1.7.1' );
</del><ins>+        $scripts-&gt;add( 'jquery-ui-dialog', '/wp-includes/js/jquery/ui.dialog.js', array('jquery-ui-resizable', 'jquery-ui-draggable'), '1.7.2' );
</ins><span class="cx">         $scripts-&gt;add_data( 'jquery-ui-dialog', 'group', 1 );
</span><span class="cx"> 
</span><span class="cx">         // deprecated, not used in core, most functionality is included in jQuery 1.3
</span></span></pre>
</div>
</div>

</body>
</html>