<!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" />
<title>[17808] trunk/wp-includes: Fix wp-lists.js for jQuery 1.5.2</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { 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 #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg > ul, #logmsg > ol { margin-left: 0; margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#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>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://trac.wordpress.org/changeset/17808">17808</a></dd>
<dt>Author</dt> <dd>azaozz</dd>
<dt>Date</dt> <dd>2011-05-05 06:18:52 +0000 (Thu, 05 May 2011)</dd>
</dl>

<h3>Log Message</h3>
<pre>Fix wp-lists.js for jQuery 1.5.2</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkwpincludesjswplistsdevjs">trunk/wp-includes/js/wp-lists.dev.js</a></li>
<li><a href="#trunkwpincludesjswplistsjs">trunk/wp-includes/js/wp-lists.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="trunkwpincludesjswplistsdevjs"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/js/wp-lists.dev.js (17807 => 17808)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/js/wp-lists.dev.js        2011-05-05 05:54:19 UTC (rev 17807)
+++ trunk/wp-includes/js/wp-lists.dev.js        2011-05-05 06:18:52 UTC (rev 17808)
</span><span class="lines">@@ -23,73 +23,103 @@
</span><span class="cx"> 
</span><span class="cx">         parseClass: function(e,t) {
</span><span class="cx">                 var c = [], cl;
</span><ins>+
</ins><span class="cx">                 try {
</span><span class="cx">                         cl = $(e).attr('class') || '';
</span><span class="cx">                         cl = cl.match(new RegExp(t+':[\\S]+'));
</span><del>-                        if ( cl ) { c = cl[0].split(':'); }
</del><ins>+
+                        if ( cl )
+                                c = cl[0].split(':');
</ins><span class="cx">                 } catch(r) {}
</span><ins>+
</ins><span class="cx">                 return c;
</span><span class="cx">         },
</span><span class="cx"> 
</span><span class="cx">         pre: function(e,s,a) {
</span><span class="cx">                 var bg, r;
</span><ins>+
</ins><span class="cx">                 s = $.extend( {}, this.wpList.settings, {
</span><span class="cx">                         element: null,
</span><span class="cx">                         nonce: 0,
</span><span class="cx">                         target: e.get(0)
</span><span class="cx">                 }, s || {} );
</span><ins>+
</ins><span class="cx">                 if ( $.isFunction( s.confirm ) ) {
</span><span class="cx">                         if ( 'add' != a ) {
</span><span class="cx">                                 bg = $('#' + s.element).css('backgroundColor');
</span><span class="cx">                                 $('#' + s.element).css('backgroundColor', '#FF9966');
</span><span class="cx">                         }
</span><del>-                        r = s.confirm.call(this,e,s,a,bg);
-                        if ( 'add' != a ) { $('#' + s.element).css('backgroundColor', bg ); }
-                        if ( !r ) { return false; }
</del><ins>+                        r = s.confirm.call(this, e, s, a, bg);
+
+                        if ( 'add' != a )
+                                $('#' + s.element).css('backgroundColor', bg );
+
+                        if ( !r )
+                                return false;
</ins><span class="cx">                 }
</span><ins>+
</ins><span class="cx">                 return s;
</span><span class="cx">         },
</span><span class="cx"> 
</span><span class="cx">         ajaxAdd: function( e, s ) {
</span><span class="cx">                 e = $(e);
</span><span class="cx">                 s = s || {};
</span><del>-                var list = this, cls = wpList.parseClass(e,'add'), es, valid, formData;
</del><ins>+                var list = this, cls = wpList.parseClass(e,'add'), es, valid, formData, res, rres;
+
</ins><span class="cx">                 s = wpList.pre.call( list, e, s, 'add' );
</span><span class="cx"> 
</span><span class="cx">                 s.element = cls[2] || e.attr( 'id' ) || s.element || null;
</span><del>-                if ( cls[3] ) { s.addColor = '#' + cls[3]; }
-                else { s.addColor = s.addColor || '#FFFF33'; }
</del><span class="cx"> 
</span><del>-                if ( !s ) { return false; }
</del><ins>+                if ( cls[3] )
+                        s.addColor = '#' + cls[3];
+                else
+                        s.addColor = s.addColor || '#FFFF33';
</ins><span class="cx"> 
</span><del>-                if ( !e.is('[class^=&quot;add:' + list.id + ':&quot;]') ) { return !wpList.add.call( list, e, s ); }
</del><ins>+                if ( !s )
+                        return false;
</ins><span class="cx"> 
</span><del>-                if ( !s.element ) { return true; }
</del><ins>+                if ( !e.is('[class^=&quot;add:' + list.id + ':&quot;]') )
+                        return !wpList.add.call( list, e, s );
</ins><span class="cx"> 
</span><ins>+                if ( !s.element )
+                        return true;
+
</ins><span class="cx">                 s.action = 'add-' + s.what;
</span><span class="cx"> 
</span><span class="cx">                 s.nonce = wpList.nonce(e,s);
</span><span class="cx"> 
</span><span class="cx">                 es = $('#' + s.element + ' :input').not('[name=&quot;_ajax_nonce&quot;], [name=&quot;_wpnonce&quot;], [name=&quot;action&quot;]');
</span><span class="cx">                 valid = wpAjax.validateForm( '#' + s.element );
</span><del>-                if ( !valid ) { return false; }
</del><span class="cx"> 
</span><ins>+                if ( !valid )
+                        return false;
+
</ins><span class="cx">                 s.data = $.param( $.extend( { _ajax_nonce: s.nonce, action: s.action }, wpAjax.unserialize( cls[4] || '' ) ) );
</span><span class="cx">                 formData = $.isFunction(es.fieldSerialize) ? es.fieldSerialize() : es.serialize();
</span><del>-                if ( formData ) { s.data += '&amp;' + formData; }
</del><span class="cx"> 
</span><ins>+                if ( formData )
+                        s.data += '&amp;' + formData;
+
</ins><span class="cx">                 if ( $.isFunction(s.addBefore) ) {
</span><span class="cx">                         s = s.addBefore( s );
</span><del>-                        if ( !s ) { return true; }
</del><ins>+                        if ( !s )
+                                return true;
</ins><span class="cx">                 }
</span><del>-                if ( !s.data.match(/_ajax_nonce=[a-f0-9]+/) ) { return true; }
</del><span class="cx"> 
</span><ins>+                if ( !s.data.match(/_ajax_nonce=[a-f0-9]+/) )
+                        return true;
+
</ins><span class="cx">                 s.success = function(r) {
</span><del>-                        var res = wpAjax.parseAjaxResponse(r, s.response, s.element), o;
-                        if ( !res || res.errors ) { return false; }
</del><ins>+                        res = wpAjax.parseAjaxResponse(r, s.response, s.element);
</ins><span class="cx"> 
</span><del>-                        if ( true === res ) { return true; }
</del><ins>+                        rres = r;
</ins><span class="cx"> 
</span><ins>+                        if ( !res || res.errors )
+                                return false;
+
+                        if ( true === res )
+                                return true;
+
</ins><span class="cx">                         jQuery.each( res.responses, function() {
</span><span class="cx">                                 wpList.add.call( list, this.data, $.extend( {}, s, { // this.firstChild.nodevalue
</span><span class="cx">                                         pos: this.position || 0,
</span><span class="lines">@@ -98,34 +128,39 @@
</span><span class="cx">                                 } ) );
</span><span class="cx">                         } );
</span><span class="cx"> 
</span><del>-                        if ( $.isFunction(s.addAfter) ) {
-                                o = this.complete;
-                                this.complete = function(x,st) {
-                                        var _s = $.extend( { xml: x, status: st, parsed: res }, s );
-                                        s.addAfter( r, _s );
-                                        if ( $.isFunction(o) ) { o(x,st); }
-                                };
-                        }
</del><span class="cx">                         list.wpList.recolor();
</span><span class="cx">                         $(list).trigger( 'wpListAddEnd', [ s, list.wpList ] );
</span><span class="cx">                         wpList.clear.call(list,'#' + s.element);
</span><span class="cx">                 };
</span><span class="cx"> 
</span><ins>+                s.complete = function(x, st) {
+                        if ( $.isFunction(s.addAfter) ) {
+                                var _s = $.extend( { xml: x, status: st, parsed: res }, s );
+                                s.addAfter( rres, _s );
+                        }
+                };
+
</ins><span class="cx">                 $.ajax( s );
</span><span class="cx">                 return false;
</span><span class="cx">         },
</span><span class="cx"> 
</span><span class="cx">         ajaxDel: function( e, s ) {
</span><del>-                e = $(e); s = s || {};
-                var list = this, cls = wpList.parseClass(e,'delete'), element;
</del><ins>+                e = $(e);
+                s = s || {};
+                var list = this, cls = wpList.parseClass(e,'delete'), element, res, rres;
+
</ins><span class="cx">                 s = wpList.pre.call( list, e, s, 'delete' );
</span><span class="cx"> 
</span><span class="cx">                 s.element = cls[2] || s.element || null;
</span><del>-                if ( cls[3] ) { s.delColor = '#' + cls[3]; }
-                else { s.delColor = s.delColor || '#faa'; }
</del><span class="cx"> 
</span><del>-                if ( !s || !s.element ) { return false; }
</del><ins>+                if ( cls[3] )
+                        s.delColor = '#' + cls[3];
+                else
+                        s.delColor = s.delColor || '#faa';
</ins><span class="cx"> 
</span><ins>+                if ( !s || !s.element )
+                        return false;
+
</ins><span class="cx">                 s.action = 'delete-' + s.what;
</span><span class="cx"> 
</span><span class="cx">                 s.nonce = wpList.nonce(e,s);
</span><span class="lines">@@ -137,10 +172,13 @@
</span><span class="cx"> 
</span><span class="cx">                 if ( $.isFunction(s.delBefore) ) {
</span><span class="cx">                         s = s.delBefore( s, list );
</span><del>-                        if ( !s ) { return true; }
</del><ins>+                        if ( !s )
+                                return true;
</ins><span class="cx">                 }
</span><del>-                if ( !s.data._ajax_nonce ) { return true; }
</del><span class="cx"> 
</span><ins>+                if ( !s.data._ajax_nonce )
+                        return true;
+
</ins><span class="cx">                 element = $('#' + s.element);
</span><span class="cx"> 
</span><span class="cx">                 if ( 'none' != s.delColor ) {
</span><span class="lines">@@ -154,22 +192,24 @@
</span><span class="cx">                 }
</span><span class="cx"> 
</span><span class="cx">                 s.success = function(r) {
</span><del>-                        var res = wpAjax.parseAjaxResponse(r, s.response, s.element), o;
</del><ins>+                        res = wpAjax.parseAjaxResponse(r, s.response, s.element);
+                        rres = r;
+
</ins><span class="cx">                         if ( !res || res.errors ) {
</span><span class="cx">                                 element.stop().stop().css( 'backgroundColor', '#faa' ).show().queue( function() { list.wpList.recolor(); $(this).dequeue(); } );
</span><span class="cx">                                 return false;
</span><span class="cx">                         }
</span><ins>+                };
+
+                s.complete = function(x, st) {
</ins><span class="cx">                         if ( $.isFunction(s.delAfter) ) {
</span><del>-                                o = this.complete;
-                                this.complete = function(x,st) {
-                                        element.queue( function() {
-                                                var _s = $.extend( { xml: x, status: st, parsed: res }, s );
-                                                s.delAfter( r, _s );
-                                                if ( $.isFunction(o) ) { o(x,st); }
-                                        } ).dequeue();
-                                };
</del><ins>+                                element.queue( function() {
+                                        var _s = $.extend( { xml: x, status: st, parsed: res }, s );
+                                        s.delAfter( rres, _s );
+                                }).dequeue();
</ins><span class="cx">                         }
</span><del>-                };
</del><ins>+                }
+
</ins><span class="cx">                 $.ajax( s );
</span><span class="cx">                 return false;
</span><span class="cx">         },
</span><span class="lines">@@ -177,19 +217,30 @@
</span><span class="cx">         ajaxDim: function( e, s ) {
</span><span class="cx">                 if ( $(e).parent().css('display') == 'none' ) // Prevent hidden links from being clicked by hotkeys
</span><span class="cx">                         return false;
</span><del>-                e = $(e); s = s || {};
-                var list = this, cls = wpList.parseClass(e,'dim'), element, isClass, color, dimColor;
</del><ins>+
+                e = $(e);
+                s = s || {};
+
+                var list = this, cls = wpList.parseClass(e,'dim'), element, isClass, color, dimColor, res, rres;
+
</ins><span class="cx">                 s = wpList.pre.call( list, e, s, 'dim' );
</span><span class="cx"> 
</span><span class="cx">                 s.element = cls[2] || s.element || null;
</span><span class="cx">                 s.dimClass =  cls[3] || s.dimClass || null;
</span><del>-                if ( cls[4] ) { s.dimAddColor = '#' + cls[4]; }
-                else { s.dimAddColor = s.dimAddColor || '#FFFF33'; }
-                if ( cls[5] ) { s.dimDelColor = '#' + cls[5]; }
-                else { s.dimDelColor = s.dimDelColor || '#FF3333'; }
</del><span class="cx"> 
</span><del>-                if ( !s || !s.element || !s.dimClass ) { return true; }
</del><ins>+                if ( cls[4] )
+                        s.dimAddColor = '#' + cls[4];
+                else
+                        s.dimAddColor = s.dimAddColor || '#FFFF33';
</ins><span class="cx"> 
</span><ins>+                if ( cls[5] )
+                        s.dimDelColor = '#' + cls[5];
+                else
+                        s.dimDelColor = s.dimDelColor || '#FF3333';
+
+                if ( !s || !s.element || !s.dimClass )
+                        return true;
+
</ins><span class="cx">                 s.action = 'dim-' + s.what;
</span><span class="cx"> 
</span><span class="cx">                 s.nonce = wpList.nonce(e,s);
</span><span class="lines">@@ -201,7 +252,8 @@
</span><span class="cx"> 
</span><span class="cx">                 if ( $.isFunction(s.dimBefore) ) {
</span><span class="cx">                         s = s.dimBefore( s );
</span><del>-                        if ( !s ) { return true; }
</del><ins>+                        if ( !s )
+                                return true;
</ins><span class="cx">                 }
</span><span class="cx"> 
</span><span class="cx">                 element = $('#' + s.element);
</span><span class="lines">@@ -209,32 +261,39 @@
</span><span class="cx">                 color = wpList.getColor( element );
</span><span class="cx">                 element.toggleClass( s.dimClass );
</span><span class="cx">                 dimColor = isClass ? s.dimAddColor : s.dimDelColor;
</span><ins>+
</ins><span class="cx">                 if ( 'none' != dimColor ) {
</span><span class="cx">                         element
</span><span class="cx">                                 .animate( { backgroundColor: dimColor }, 'fast' )
</span><span class="cx">                                 .queue( function() { element.toggleClass(s.dimClass); $(this).dequeue(); } )
</span><del>-                                .animate( { backgroundColor: color }, { complete: function() { $(this).css( 'backgroundColor', '' ); $(list).trigger( 'wpListDimEnd', [ s, list.wpList ] ); } } );
</del><ins>+                                .animate( { backgroundColor: color }, { complete: function() {
+                                                $(this).css( 'backgroundColor', '' );
+                                                $(list).trigger( 'wpListDimEnd', [ s, list.wpList ] );
+                                        }
+                                });
</ins><span class="cx">                 } else {
</span><span class="cx">                         $(list).trigger( 'wpListDimEnd', [ s, list.wpList ] );
</span><span class="cx">                 }
</span><span class="cx"> 
</span><del>-                if ( !s.data._ajax_nonce ) { return true; }
</del><ins>+                if ( !s.data._ajax_nonce )
+                        return true;
</ins><span class="cx"> 
</span><span class="cx">                 s.success = function(r) {
</span><del>-                        var res = wpAjax.parseAjaxResponse(r, s.response, s.element), o;
</del><ins>+                        res = wpAjax.parseAjaxResponse(r, s.response, s.element);
+                        rres = r;
+
</ins><span class="cx">                         if ( !res || res.errors ) {
</span><span class="cx">                                 element.stop().stop().css( 'backgroundColor', '#FF3333' )[isClass?'removeClass':'addClass'](s.dimClass).show().queue( function() { list.wpList.recolor(); $(this).dequeue(); } );
</span><span class="cx">                                 return false;
</span><span class="cx">                         }
</span><ins>+                };
+
+                s.complete = function(x, st) {
</ins><span class="cx">                         if ( $.isFunction(s.dimAfter) ) {
</span><del>-                                o = this.complete;
-                                this.complete = function(x,st) {
-                                        element.queue( function() {
-                                                var _s = $.extend( { xml: x, status: st, parsed: res }, s );
-                                                s.dimAfter( r, _s );
-                                                if ( $.isFunction(o) ) { o(x,st); }
-                                        } ).dequeue();
-                                };
</del><ins>+                                element.queue( function() {
+                                        var _s = $.extend( { xml: x, status: st, parsed: res }, s );
+                                        s.dimAfter( rres, _s );
+                                }).dequeue();
</ins><span class="cx">                         }
</span><span class="cx">                 };
</span><span class="cx"> 
</span><span class="lines">@@ -272,13 +331,19 @@
</span><span class="cx">                         old.remove();
</span><span class="cx">                 } else if ( isNaN(s.pos) ) {
</span><span class="cx">                         ba = 'after';
</span><ins>+
</ins><span class="cx">                         if ( '-' == s.pos.substr(0,1) ) {
</span><span class="cx">                                 s.pos = s.pos.substr(1);
</span><span class="cx">                                 ba = 'before';
</span><span class="cx">                         }
</span><ins>+
</ins><span class="cx">                         ref = list.find( '#' + s.pos );
</span><del>-                        if ( 1 === ref.size() ) { ref[ba](e); }
-                        else { list.append(e); }
</del><ins>+
+                        if ( 1 === ref.size() )
+                                ref[ba](e);
+                        else
+                                list.append(e);
+
</ins><span class="cx">                 } else if ( s.pos &lt; 0 ) {
</span><span class="cx">                         list.prepend(e);
</span><span class="cx">                 } else {
</span><span class="lines">@@ -300,16 +365,25 @@
</span><span class="cx"> 
</span><span class="cx">         clear: function(e) {
</span><span class="cx">                 var list = this, t, tag;
</span><ins>+
</ins><span class="cx">                 e = $(e);
</span><del>-                if ( list.wpList &amp;&amp; e.parents( '#' + list.id ).size() ) { return; }
</del><ins>+
+                if ( list.wpList &amp;&amp; e.parents( '#' + list.id ).size() )
+                        return;
+
</ins><span class="cx">                 e.find(':input').each( function() {
</span><span class="cx">                         if ( $(this).parents('.form-no-clear').size() )
</span><span class="cx">                                 return;
</span><ins>+
</ins><span class="cx">                         t = this.type.toLowerCase();
</span><span class="cx">                         tag = this.tagName.toLowerCase();
</span><del>-                        if ( 'text' == t || 'password' == t || 'textarea' == tag ) { this.value = ''; }
-                        else if ( 'checkbox' == t || 'radio' == t ) { this.checked = false; }
-                        else if ( 'select' == tag ) { this.selectedIndex = null; }
</del><ins>+
+                        if ( 'text' == t || 'password' == t || 'textarea' == tag )
+                                this.value = '';
+                        else if ( 'checkbox' == t || 'radio' == t )
+                                this.checked = false;
+                        else if ( 'select' == tag )
+                                this.selectedIndex = null;
</ins><span class="cx">                 });
</span><span class="cx">         },
</span><span class="cx"> 
</span><span class="lines">@@ -336,21 +410,32 @@
</span><span class="cx"> 
</span><span class="cx">         recolor: function() {
</span><span class="cx">                 var list = this, items, eo;
</span><del>-                if ( !list.wpList.settings.alt ) { return; }
</del><ins>+
+                if ( !list.wpList.settings.alt )
+                        return;
+
</ins><span class="cx">                 items = $('.list-item:visible', list);
</span><del>-                if ( !items.size() ) { items = $(list).children(':visible'); }
</del><ins>+
+                if ( !items.size() )
+                        items = $(list).children(':visible');
+
</ins><span class="cx">                 eo = [':even',':odd'];
</span><del>-                if ( list.wpList.settings.altOffset % 2 ) { eo.reverse(); }
</del><ins>+
+                if ( list.wpList.settings.altOffset % 2 )
+                        eo.reverse();
+
</ins><span class="cx">                 items.filter(eo[0]).addClass(list.wpList.settings.alt).end().filter(eo[1]).removeClass(list.wpList.settings.alt);
</span><span class="cx">         },
</span><span class="cx"> 
</span><span class="cx">         init: function() {
</span><span class="cx">                 var lists = this;
</span><ins>+
</ins><span class="cx">                 lists.wpList.process = function(a) {
</span><span class="cx">                         lists.each( function() {
</span><span class="cx">                                 this.wpList.process(a);
</span><span class="cx">                         } );
</span><span class="cx">                 };
</span><ins>+
</ins><span class="cx">                 lists.wpList.recolor = function() {
</span><span class="cx">                         lists.each( function() {
</span><span class="cx">                                 this.wpList.recolor();
</span><span class="lines">@@ -362,11 +447,15 @@
</span><span class="cx"> $.fn.wpList = function( settings ) {
</span><span class="cx">         this.each( function() {
</span><span class="cx">                 var _this = this;
</span><ins>+
</ins><span class="cx">                 this.wpList = { settings: $.extend( {}, wpList.settings, { what: wpList.parseClass(this,'list')[1] || '' }, settings ) };
</span><span class="cx">                 $.each( fs, function(i,f) { _this.wpList[i] = function( e, s ) { return wpList[f].call( _this, e, s ); }; } );
</span><span class="cx">         } );
</span><ins>+
</ins><span class="cx">         wpList.init.call(this);
</span><ins>+
</ins><span class="cx">         this.wpList.process();
</span><ins>+
</ins><span class="cx">         return this;
</span><span class="cx"> };
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkwpincludesjswplistsjs"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/js/wp-lists.js (17807 => 17808)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/js/wp-lists.js        2011-05-05 05:54:19 UTC (rev 17807)
+++ trunk/wp-includes/js/wp-lists.js        2011-05-05 06:18:52 UTC (rev 17808)
</span><span class="lines">@@ -1 +1 @@
</span><del>-(function(b){var a={add:&quot;ajaxAdd&quot;,del:&quot;ajaxDel&quot;,dim:&quot;ajaxDim&quot;,process:&quot;process&quot;,recolor:&quot;recolor&quot;},c;c={settings:{url:ajaxurl,type:&quot;POST&quot;,response:&quot;ajax-response&quot;,what:&quot;&quot;,alt:&quot;alternate&quot;,altOffset:0,addColor:null,delColor:null,dimAddColor:null,dimDelColor:null,confirm:null,addBefore:null,addAfter:null,delBefore:null,delAfter:null,dimBefore:null,dimAfter:null},nonce:function(g,f){var d=wpAjax.unserialize(g.attr(&quot;href&quot;));return f.nonce||d._ajax_nonce||b(&quot;#&quot;+f.element+' input[name=&quot;_ajax_nonce&quot;]').val()||d._wpnonce||b(&quot;#&quot;+f.element+' input[name=&quot;_wpnonce&quot;]').val()||0},parseClass:function(h,f){var i=[],d;try{d=b(h).attr(&quot;class&quot;)||&quot;&quot;;d=d.match(new RegExp(f+&quot;:[\\S]+&quot;));if(d){i=d[0].split(&quot;:&quot;)}}catch(g){}return i},pre:function(i,g,d){var f,h;g=b.extend({},this.wpList.settings,{element:null,non
 ce:0,target:i.get(0)},g||{});if(b.isFunction(g.confirm)){if(&quot;add&quot;!=d){f=b(&quot;#&quot;+g.element).css(&quot;backgroundColor&quot;);b(&quot;#&quot;+g.element).css(&quot;backgroundColor&quot;,&quot;#FF9966&quot;)}h=g.confirm.call(this,i,g,d,f);if(&quot;add&quot;!=d){b(&quot;#&quot;+g.element).css(&quot;backgroundColor&quot;,f)}if(!h){return false}}return g},ajaxAdd:function(j,f){j=b(j);f=f||{};var h=this,d=c.parseClass(j,&quot;add&quot;),k,g,i;f=c.pre.call(h,j,f,&quot;add&quot;);f.element=d[2]||j.attr(&quot;id&quot;)||f.element||null;if(d[3]){f.addColor=&quot;#&quot;+d[3]}else{f.addColor=f.addColor||&quot;#FFFF33&quot;}if(!f){return false}if(!j.is('[class^=&quot;add:'+h.id+':&quot;]')){return !c.add.call(h,j,f)}if(!f.element){return true}f.action=&quot;add-&quot;+f.what;f.nonce=c.nonce(j,f);k=b(&quot;#&quot;+f.element+&quot; :input&quot;).not('[name=&quot;_ajax_nonce&quot;], [name=&quot;_wpnonce&quot;], [name=&quot;action&quot;]');g=wpAjax.validateForm(&quot;#&quot;
 +f.element);if(!g){return false}f.data=b.param(b.extend({_ajax_nonce:f.nonce,action:f.action},wpAjax.unserialize(d[4]||&quot;&quot;)));i=b.isFunction(k.fieldSerialize)?k.fieldSerialize():k.serialize();if(i){f.data+=&quot;&amp;&quot;+i}if(b.isFunction(f.addBefore)){f=f.addBefore(f);if(!f){return true}}if(!f.data.match(/_ajax_nonce=[a-f0-9]+/)){return true}f.success=function(l){var e=wpAjax.parseAjaxResponse(l,f.response,f.element),m;if(!e||e.errors){return false}if(true===e){return true}jQuery.each(e.responses,function(){c.add.call(h,this.data,b.extend({},f,{pos:this.position||0,id:this.id||0,oldId:this.oldId||null}))});if(b.isFunction(f.addAfter)){m=this.complete;this.complete=function(n,o){var p=b.extend({xml:n,status:o,parsed:e},f);f.addAfter(l,p);if(b.isFunction(m)){m(n,o)}}}h.wpList.recolor();b(h).trigger(&quot;wpListAddEnd&quot;,[f,h.wpList]);c.clear.call(h,&quot;#&quot;+f.element)};b.ajax(f);return false},ajaxDel:function(i,g){i=b(i);g=g||{};var h=this,d=c.parseClass(i
 ,&quot;delete&quot;),f;g=c.pre.call(h,i,g,&quot;delete&quot;);g.element=d[2]||g.element||null;if(d[3]){g.delColor=&quot;#&quot;+d[3]}else{g.delColor=g.delColor||&quot;#faa&quot;}if(!g||!g.element){return false}g.action=&quot;delete-&quot;+g.what;g.nonce=c.nonce(i,g);g.data=b.extend({action:g.action,id:g.element.split(&quot;-&quot;).pop(),_ajax_nonce:g.nonce},wpAjax.unserialize(d[4]||&quot;&quot;));if(b.isFunction(g.delBefore)){g=g.delBefore(g,h);if(!g){return true}}if(!g.data._ajax_nonce){return true}f=b(&quot;#&quot;+g.element);if(&quot;none&quot;!=g.delColor){f.css(&quot;backgroundColor&quot;,g.delColor).fadeOut(350,function(){h.wpList.recolor();b(h).trigger(&quot;wpListDelEnd&quot;,[g,h.wpList])})}else{h.wpList.recolor();b(h).trigger(&quot;wpListDelEnd&quot;,[g,h.wpList])}g.success=function(j){var e=wpAjax.parseAjaxResponse(j,g.response,g.element),k;if(!e||e.errors){f.stop().stop().css(&quot;backgroundColor&quot;,&quot;#faa&quot;).show().queue(function(){h.wpList.recolor(
 );b(this).dequeue()});return false}if(b.isFunction(g.delAfter)){k=this.complete;this.complete=function(l,m){f.queue(function(){var n=b.extend({xml:l,status:m,parsed:e},g);g.delAfter(j,n);if(b.isFunction(k)){k(l,m)}}).dequeue()}}};b.ajax(g);return false},ajaxDim:function(k,h){if(b(k).parent().css(&quot;display&quot;)==&quot;none&quot;){return false}k=b(k);h=h||{};var j=this,d=c.parseClass(k,&quot;dim&quot;),g,l,f,i;h=c.pre.call(j,k,h,&quot;dim&quot;);h.element=d[2]||h.element||null;h.dimClass=d[3]||h.dimClass||null;if(d[4]){h.dimAddColor=&quot;#&quot;+d[4]}else{h.dimAddColor=h.dimAddColor||&quot;#FFFF33&quot;}if(d[5]){h.dimDelColor=&quot;#&quot;+d[5]}else{h.dimDelColor=h.dimDelColor||&quot;#FF3333&quot;}if(!h||!h.element||!h.dimClass){return true}h.action=&quot;dim-&quot;+h.what;h.nonce=c.nonce(k,h);h.data=b.extend({action:h.action,id:h.element.split(&quot;-&quot;).pop(),dimClass:h.dimClass,_ajax_nonce:h.nonce},wpAjax.unserialize(d[6]||&quot;&quot;));if(b.isFunction(h.dimBefo
 re)){h=h.dimBefore(h);if(!h){return true}}g=b(&quot;#&quot;+h.element);l=g.toggleClass(h.dimClass).is(&quot;.&quot;+h.dimClass);f=c.getColor(g);g.toggleClass(h.dimClass);i=l?h.dimAddColor:h.dimDelColor;if(&quot;none&quot;!=i){g.animate({backgroundColor:i},&quot;fast&quot;).queue(function(){g.toggleClass(h.dimClass);b(this).dequeue()}).animate({backgroundColor:f},{complete:function(){b(this).css(&quot;backgroundColor&quot;,&quot;&quot;);b(j).trigger(&quot;wpListDimEnd&quot;,[h,j.wpList])}})}else{b(j).trigger(&quot;wpListDimEnd&quot;,[h,j.wpList])}if(!h.data._ajax_nonce){return true}h.success=function(m){var e=wpAjax.parseAjaxResponse(m,h.response,h.element),n;if(!e||e.errors){g.stop().stop().css(&quot;backgroundColor&quot;,&quot;#FF3333&quot;)[l?&quot;removeClass&quot;:&quot;addClass&quot;](h.dimClass).show().queue(function(){j.wpList.recolor();b(this).dequeue()});return false}if(b.isFunction(h.dimAfter)){n=this.complete;this.complete=function(o,p){g.queue(function(){var q=b.
 extend({xml:o,status:p,parsed:e},h);h.dimAfter(m,q);if(b.isFunction(n)){n(o,p)}}).dequeue()}}};b.ajax(h);return false},getColor:function(e){var d=jQuery(e).css(&quot;backgroundColor&quot;);return d||&quot;#ffffff&quot;},add:function(k,g){k=b(k);var i=b(this),d=false,j={pos:0,id:0,oldId:null},l,h,f;if(&quot;string&quot;==typeof g){g={what:g}}g=b.extend(j,this.wpList.settings,g);if(!k.size()||!g.what){return false}if(g.oldId){d=b(&quot;#&quot;+g.what+&quot;-&quot;+g.oldId)}if(g.id&amp;&amp;(g.id!=g.oldId||!d||!d.size())){b(&quot;#&quot;+g.what+&quot;-&quot;+g.id).remove()}if(d&amp;&amp;d.size()){d.before(k);d.remove()}else{if(isNaN(g.pos)){l=&quot;after&quot;;if(&quot;-&quot;==g.pos.substr(0,1)){g.pos=g.pos.substr(1);l=&quot;before&quot;}h=i.find(&quot;#&quot;+g.pos);if(1===h.size()){h[l](k)}else{i.append(k)}}else{if(g.pos&lt;0){i.prepend(k)}else{i.append(k)}}}if(g.alt){if((i.children(&quot;:visible&quot;).index(k[0])+g.altOffset)%2){k.removeClass(g.alt)}else{k.addClass(g.alt)
 }}if(&quot;none&quot;!=g.addColor){f=c.getColor(k);k.css(&quot;backgroundColor&quot;,g.addColor).animate({backgroundColor:f},{complete:function(){b(this).css(&quot;backgroundColor&quot;,&quot;&quot;)}})}i.each(function(){this.wpList.process(k)});return k},clear:function(h){var g=this,f,d;h=b(h);if(g.wpList&amp;&amp;h.parents(&quot;#&quot;+g.id).size()){return}h.find(&quot;:input&quot;).each(function(){if(b(this).parents(&quot;.form-no-clear&quot;).size()){return}f=this.type.toLowerCase();d=this.tagName.toLowerCase();if(&quot;text&quot;==f||&quot;password&quot;==f||&quot;textarea&quot;==d){this.value=&quot;&quot;}else{if(&quot;checkbox&quot;==f||&quot;radio&quot;==f){this.checked=false}else{if(&quot;select&quot;==d){this.selectedIndex=null}}}})},process:function(e){var f=this,d=b(e||document);d.delegate('form[class^=&quot;add:'+f.id+':&quot;]',&quot;submit&quot;,function(){return f.wpList.add(this)});d.delegate('[class^=&quot;add:'+f.id+':&quot;]:not(form)',&quot;click&quot;,
 function(){return f.wpList.add(this)});d.delegate('[class^=&quot;delete:'+f.id+':&quot;]',&quot;click&quot;,function(){return f.wpList.del(this)});d.delegate('[class^=&quot;dim:'+f.id+':&quot;]',&quot;click&quot;,function(){return f.wpList.dim(this)})},recolor:function(){var f=this,e,d;if(!f.wpList.settings.alt){return}e=b(&quot;.list-item:visible&quot;,f);if(!e.size()){e=b(f).children(&quot;:visible&quot;)}d=[&quot;:even&quot;,&quot;:odd&quot;];if(f.wpList.settings.altOffset%2){d.reverse()}e.filter(d[0]).addClass(f.wpList.settings.alt).end().filter(d[1]).removeClass(f.wpList.settings.alt)},init:function(){var d=this;d.wpList.process=function(e){d.each(function(){this.wpList.process(e)})};d.wpList.recolor=function(){d.each(function(){this.wpList.recolor()})}}};b.fn.wpList=function(d){this.each(function(){var e=this;this.wpList={settings:b.extend({},c.settings,{what:c.parseClass(this,&quot;list&quot;)[1]||&quot;&quot;},d)};b.each(a,function(g,h){e.wpList[g]=function(i,f){retu
 rn c[h].call(e,i,f)}})});c.init.call(this);this.wpList.process();return this}})(jQuery);
</del><span class="cx">\ No newline at end of file
</span><ins>+(function(b){var a={add:&quot;ajaxAdd&quot;,del:&quot;ajaxDel&quot;,dim:&quot;ajaxDim&quot;,process:&quot;process&quot;,recolor:&quot;recolor&quot;},c;c={settings:{url:ajaxurl,type:&quot;POST&quot;,response:&quot;ajax-response&quot;,what:&quot;&quot;,alt:&quot;alternate&quot;,altOffset:0,addColor:null,delColor:null,dimAddColor:null,dimDelColor:null,confirm:null,addBefore:null,addAfter:null,delBefore:null,delAfter:null,dimBefore:null,dimAfter:null},nonce:function(g,f){var d=wpAjax.unserialize(g.attr(&quot;href&quot;));return f.nonce||d._ajax_nonce||b(&quot;#&quot;+f.element+' input[name=&quot;_ajax_nonce&quot;]').val()||d._wpnonce||b(&quot;#&quot;+f.element+' input[name=&quot;_wpnonce&quot;]').val()||0},parseClass:function(h,f){var i=[],d;try{d=b(h).attr(&quot;class&quot;)||&quot;&quot;;d=d.match(new RegExp(f+&quot;:[\\S]+&quot;));if(d){i=d[0].split(&quot;:&quot;)}}catch(g){}return i},pre:function(i,g,d){var f,h;g=b.extend({},this.wpList.settings,{element:null,non
 ce:0,target:i.get(0)},g||{});if(b.isFunction(g.confirm)){if(&quot;add&quot;!=d){f=b(&quot;#&quot;+g.element).css(&quot;backgroundColor&quot;);b(&quot;#&quot;+g.element).css(&quot;backgroundColor&quot;,&quot;#FF9966&quot;)}h=g.confirm.call(this,i,g,d,f);if(&quot;add&quot;!=d){b(&quot;#&quot;+g.element).css(&quot;backgroundColor&quot;,f)}if(!h){return false}}return g},ajaxAdd:function(g,m){g=b(g);m=m||{};var h=this,l=c.parseClass(g,&quot;add&quot;),j,d,f,i,k;m=c.pre.call(h,g,m,&quot;add&quot;);m.element=l[2]||g.attr(&quot;id&quot;)||m.element||null;if(l[3]){m.addColor=&quot;#&quot;+l[3]}else{m.addColor=m.addColor||&quot;#FFFF33&quot;}if(!m){return false}if(!g.is('[class^=&quot;add:'+h.id+':&quot;]')){return !c.add.call(h,g,m)}if(!m.element){return true}m.action=&quot;add-&quot;+m.what;m.nonce=c.nonce(g,m);j=b(&quot;#&quot;+m.element+&quot; :input&quot;).not('[name=&quot;_ajax_nonce&quot;], [name=&quot;_wpnonce&quot;], [name=&quot;action&quot;]');d=wpAjax.validateForm(&quot;#&q
 uot;+m.element);if(!d){return false}m.data=b.param(b.extend({_ajax_nonce:m.nonce,action:m.action},wpAjax.unserialize(l[4]||&quot;&quot;)));f=b.isFunction(j.fieldSerialize)?j.fieldSerialize():j.serialize();if(f){m.data+=&quot;&amp;&quot;+f}if(b.isFunction(m.addBefore)){m=m.addBefore(m);if(!m){return true}}if(!m.data.match(/_ajax_nonce=[a-f0-9]+/)){return true}m.success=function(e){i=wpAjax.parseAjaxResponse(e,m.response,m.element);k=e;if(!i||i.errors){return false}if(true===i){return true}jQuery.each(i.responses,function(){c.add.call(h,this.data,b.extend({},m,{pos:this.position||0,id:this.id||0,oldId:this.oldId||null}))});h.wpList.recolor();b(h).trigger(&quot;wpListAddEnd&quot;,[m,h.wpList]);c.clear.call(h,&quot;#&quot;+m.element)};m.complete=function(e,n){if(b.isFunction(m.addAfter)){var o=b.extend({xml:e,status:n,parsed:i},m);m.addAfter(k,o)}};b.ajax(m);return false},ajaxDel:function(k,i){k=b(k);i=i||{};var j=this,d=c.parseClass(k,&quot;delete&quot;),h,g,f;i=c.pre.call(j,k,
 i,&quot;delete&quot;);i.element=d[2]||i.element||null;if(d[3]){i.delColor=&quot;#&quot;+d[3]}else{i.delColor=i.delColor||&quot;#faa&quot;}if(!i||!i.element){return false}i.action=&quot;delete-&quot;+i.what;i.nonce=c.nonce(k,i);i.data=b.extend({action:i.action,id:i.element.split(&quot;-&quot;).pop(),_ajax_nonce:i.nonce},wpAjax.unserialize(d[4]||&quot;&quot;));if(b.isFunction(i.delBefore)){i=i.delBefore(i,j);if(!i){return true}}if(!i.data._ajax_nonce){return true}h=b(&quot;#&quot;+i.element);if(&quot;none&quot;!=i.delColor){h.css(&quot;backgroundColor&quot;,i.delColor).fadeOut(350,function(){j.wpList.recolor();b(j).trigger(&quot;wpListDelEnd&quot;,[i,j.wpList])})}else{j.wpList.recolor();b(j).trigger(&quot;wpListDelEnd&quot;,[i,j.wpList])}i.success=function(e){g=wpAjax.parseAjaxResponse(e,i.response,i.element);f=e;if(!g||g.errors){h.stop().stop().css(&quot;backgroundColor&quot;,&quot;#faa&quot;).show().queue(function(){j.wpList.recolor();b(this).dequeue()});return false}};i.com
 plete=function(e,l){if(b.isFunction(i.delAfter)){h.queue(function(){var m=b.extend({xml:e,status:l,parsed:g},i);i.delAfter(f,m)}).dequeue()}};b.ajax(i);return false},ajaxDim:function(h,n){if(b(h).parent().css(&quot;display&quot;)==&quot;none&quot;){return false}h=b(h);n=n||{};var i=this,m=c.parseClass(h,&quot;dim&quot;),g,d,f,k,j,l;n=c.pre.call(i,h,n,&quot;dim&quot;);n.element=m[2]||n.element||null;n.dimClass=m[3]||n.dimClass||null;if(m[4]){n.dimAddColor=&quot;#&quot;+m[4]}else{n.dimAddColor=n.dimAddColor||&quot;#FFFF33&quot;}if(m[5]){n.dimDelColor=&quot;#&quot;+m[5]}else{n.dimDelColor=n.dimDelColor||&quot;#FF3333&quot;}if(!n||!n.element||!n.dimClass){return true}n.action=&quot;dim-&quot;+n.what;n.nonce=c.nonce(h,n);n.data=b.extend({action:n.action,id:n.element.split(&quot;-&quot;).pop(),dimClass:n.dimClass,_ajax_nonce:n.nonce},wpAjax.unserialize(m[6]||&quot;&quot;));if(b.isFunction(n.dimBefore)){n=n.dimBefore(n);if(!n){return true}}g=b(&quot;#&quot;+n.element);d=g.toggleCla
 ss(n.dimClass).is(&quot;.&quot;+n.dimClass);f=c.getColor(g);g.toggleClass(n.dimClass);k=d?n.dimAddColor:n.dimDelColor;if(&quot;none&quot;!=k){g.animate({backgroundColor:k},&quot;fast&quot;).queue(function(){g.toggleClass(n.dimClass);b(this).dequeue()}).animate({backgroundColor:f},{complete:function(){b(this).css(&quot;backgroundColor&quot;,&quot;&quot;);b(i).trigger(&quot;wpListDimEnd&quot;,[n,i.wpList])}})}else{b(i).trigger(&quot;wpListDimEnd&quot;,[n,i.wpList])}if(!n.data._ajax_nonce){return true}n.success=function(e){j=wpAjax.parseAjaxResponse(e,n.response,n.element);l=e;if(!j||j.errors){g.stop().stop().css(&quot;backgroundColor&quot;,&quot;#FF3333&quot;)[d?&quot;removeClass&quot;:&quot;addClass&quot;](n.dimClass).show().queue(function(){i.wpList.recolor();b(this).dequeue()});return false}};n.complete=function(e,o){if(b.isFunction(n.dimAfter)){g.queue(function(){var p=b.extend({xml:e,status:o,parsed:j},n);n.dimAfter(l,p)}).dequeue()}};b.ajax(n);return false},getColor:func
 tion(e){var d=jQuery(e).css(&quot;backgroundColor&quot;);return d||&quot;#ffffff&quot;},add:function(k,g){k=b(k);var i=b(this),d=false,j={pos:0,id:0,oldId:null},l,h,f;if(&quot;string&quot;==typeof g){g={what:g}}g=b.extend(j,this.wpList.settings,g);if(!k.size()||!g.what){return false}if(g.oldId){d=b(&quot;#&quot;+g.what+&quot;-&quot;+g.oldId)}if(g.id&amp;&amp;(g.id!=g.oldId||!d||!d.size())){b(&quot;#&quot;+g.what+&quot;-&quot;+g.id).remove()}if(d&amp;&amp;d.size()){d.before(k);d.remove()}else{if(isNaN(g.pos)){l=&quot;after&quot;;if(&quot;-&quot;==g.pos.substr(0,1)){g.pos=g.pos.substr(1);l=&quot;before&quot;}h=i.find(&quot;#&quot;+g.pos);if(1===h.size()){h[l](k)}else{i.append(k)}}else{if(g.pos&lt;0){i.prepend(k)}else{i.append(k)}}}if(g.alt){if((i.children(&quot;:visible&quot;).index(k[0])+g.altOffset)%2){k.removeClass(g.alt)}else{k.addClass(g.alt)}}if(&quot;none&quot;!=g.addColor){f=c.getColor(k);k.css(&quot;backgroundColor&quot;,g.addColor).animate({backgroundColor:f},{comple
 te:function(){b(this).css(&quot;backgroundColor&quot;,&quot;&quot;)}})}i.each(function(){this.wpList.process(k)});return k},clear:function(h){var g=this,f,d;h=b(h);if(g.wpList&amp;&amp;h.parents(&quot;#&quot;+g.id).size()){return}h.find(&quot;:input&quot;).each(function(){if(b(this).parents(&quot;.form-no-clear&quot;).size()){return}f=this.type.toLowerCase();d=this.tagName.toLowerCase();if(&quot;text&quot;==f||&quot;password&quot;==f||&quot;textarea&quot;==d){this.value=&quot;&quot;}else{if(&quot;checkbox&quot;==f||&quot;radio&quot;==f){this.checked=false}else{if(&quot;select&quot;==d){this.selectedIndex=null}}}})},process:function(e){var f=this,d=b(e||document);d.delegate('form[class^=&quot;add:'+f.id+':&quot;]',&quot;submit&quot;,function(){return f.wpList.add(this)});d.delegate('[class^=&quot;add:'+f.id+':&quot;]:not(form)',&quot;click&quot;,function(){return f.wpList.add(this)});d.delegate('[class^=&quot;delete:'+f.id+':&quot;]',&quot;click&quot;,function(){return f.wpLi
 st.del(this)});d.delegate('[class^=&quot;dim:'+f.id+':&quot;]',&quot;click&quot;,function(){return f.wpList.dim(this)})},recolor:function(){var f=this,e,d;if(!f.wpList.settings.alt){return}e=b(&quot;.list-item:visible&quot;,f);if(!e.size()){e=b(f).children(&quot;:visible&quot;)}d=[&quot;:even&quot;,&quot;:odd&quot;];if(f.wpList.settings.altOffset%2){d.reverse()}e.filter(d[0]).addClass(f.wpList.settings.alt).end().filter(d[1]).removeClass(f.wpList.settings.alt)},init:function(){var d=this;d.wpList.process=function(e){d.each(function(){this.wpList.process(e)})};d.wpList.recolor=function(){d.each(function(){this.wpList.recolor()})}}};b.fn.wpList=function(d){this.each(function(){var e=this;this.wpList={settings:b.extend({},c.settings,{what:c.parseClass(this,&quot;list&quot;)[1]||&quot;&quot;},d)};b.each(a,function(g,h){e.wpList[g]=function(i,f){return c[h].call(e,i,f)}})});c.init.call(this);this.wpList.process();return this}})(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 (17807 => 17808)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/script-loader.php        2011-05-05 05:54:19 UTC (rev 17807)
+++ trunk/wp-includes/script-loader.php        2011-05-05 06:18:52 UTC (rev 17808)
</span><span class="lines">@@ -112,7 +112,7 @@
</span><span class="cx">         $scripts-&gt;add( 'autosave', &quot;/wp-includes/js/autosave$suffix.js&quot;, array('schedule', 'wp-ajax-response'), '20110425' );
</span><span class="cx">         $scripts-&gt;add_data( 'autosave', 'group', 1 );
</span><span class="cx"> 
</span><del>-        $scripts-&gt;add( 'wp-lists', &quot;/wp-includes/js/wp-lists$suffix.js&quot;, array('wp-ajax-response'), '20110430' );
</del><ins>+        $scripts-&gt;add( 'wp-lists', &quot;/wp-includes/js/wp-lists$suffix.js&quot;, array('wp-ajax-response'), '20110504' );
</ins><span class="cx">         $scripts-&gt;add_data( 'wp-lists', 'group', 1 );
</span><span class="cx"> 
</span><span class="cx">         $scripts-&gt;add( 'scriptaculous-root', '/wp-includes/js/scriptaculous/wp-scriptaculous.js', array('prototype'), '1.8.3');
</span></span></pre>
</div>
</div>

</body>
</html>