<!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>[18028] trunk/wp-admin/js: Remove wp-admin/js/list-table.js, not used anywhere and not listed in script-loader.</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/18028">18028</a></dd>
<dt>Author</dt> <dd>azaozz</dd>
<dt>Date</dt> <dd>2011-05-25 01:06:24 +0000 (Wed, 25 May 2011)</dd>
</dl>

<h3>Log Message</h3>
<pre>Remove wp-admin/js/list-table.js, not used anywhere and not listed in script-loader.</pre>

<h3>Removed Paths</h3>
<ul>
<li><a href="#trunkwpadminjslisttabledevjs">trunk/wp-admin/js/list-table.dev.js</a></li>
<li><a href="#trunkwpadminjslisttablejs">trunk/wp-admin/js/list-table.js</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkwpadminjslisttabledevjs"></a>
<div class="delfile"><h4>Deleted: trunk/wp-admin/js/list-table.dev.js (18027 => 18028)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/js/list-table.dev.js        2011-05-25 01:04:12 UTC (rev 18027)
+++ trunk/wp-admin/js/list-table.dev.js        2011-05-25 01:06:24 UTC (rev 18028)
</span><span class="lines">@@ -1,337 +0,0 @@
</span><del>-jQuery(document).ready(function($) {
-
-window.listTable = {
-
-        init: function() {
-                this.loading = false;
-
-                this.reset( '.tablenav, .search-box, .wp-list-table' );
-
-                if ( '' == $.query.GET('paged') )
-                        $.query.SET('paged', 1);
-                this.set_total_pages();
-
-                this.$tbody = $('#the-list, #the-comment-list');
-        },
-
-        /**
-         * Simulates form.reset() for all input, select, and textarea elements
-         * within a provided context.
-         */
-        reset: function( context ) {
-                context = $(context);
-
-                $('input', context).each( function(){
-                        this.value = this.defaultValue;
-                        this.checked = this.defaultChecked;
-                });
-
-                $('select', context).each( function(){
-                        var options = $('option', this),
-                                anySelected = false;
-
-                        options.each( function(){
-                                this.selected = this.defaultSelected;
-                                anySelected = anySelected || this.defaultSelected;
-                        });
-
-                        // If no options are selected within a single-select dropdown,
-                        // select the first element by default.
-                        if ( ! this.multiple &amp;&amp; ! anySelected )
-                                options[0].selected = true;
-                });
-
-                $('textarea', context).each( function(){
-                        this.value = this.defaultValue;
-                });
-        },
-
-        // paging
-        set_total_pages: function(num) {
-                var last_page_url = $('.last-page').attr('href');
-
-                if ( last_page_url )
-                        this.total_pages = num || $.query.load( last_page_url ).get('paged');
-        },
-
-        get_total_pages: function() {
-                return this.total_pages;
-        },
-
-        htmlencode: function(value) {
-                return $('&lt;div/&gt;').text(value).html();
-        },
-
-        update_rows: function(args, reset_paging, callback) {
-                if ( this.loading )
-                        return false;
-
-                var different = false, data = {};
-
-                $.each(args, function(key, val) {
-                        if ( val != $.query.GET(key) ) {
-                                $.query.SET(key, val);
-                                different = true;
-                        }
-                });
-
-                if ( !different )
-                        return false;
-
-                this.start_loading();
-
-                if ( reset_paging )
-                        $.query.SET('paged', 1);
-
-                $.each( $.query.get(), function(key, value) {
-                        if ( true === value )
-                                data[key] = '';
-                        else
-                                data[key] = value;
-                });
-
-                this._callback = callback;
-
-                this.fetch_list(
-                        data,
-                        $.proxy(this, 'handle_success'),
-                        $.proxy(this, 'handle_error')
-                );
-
-                return true;
-        },
-
-        fetch_list: function(data, success_callback, error_callback) {
-                data = $.extend(data, {
-                        'action': 'fetch-list',
-                        'list_args': list_args,
-                        '_ajax_fetch_list_nonce': $('#_ajax_fetch_list_nonce').val()
-                });
-
-                $.ajax({
-                        url: ajaxurl,
-                        global: false,
-                        dataType: 'json',
-                        data: data,
-                        success: success_callback,
-                        error: error_callback
-                });
-        },
-
-        handle_success: function(response) {
-                if ( 'object' != typeof response ) {
-                        this.handle_error();
-                } else {
-                        var tablenav = $('.tablenav-pages');
-
-                        this.stop_loading();
-
-                        $('div.updated, div.error').not('.persistent, .inline').remove();
-
-                        this.$tbody.html(response.rows);
-
-                        $('.displaying-num').html(response.total_items_i18n);
-                        $('.total-pages').html(response.total_pages_i18n);
-
-                        this.set_total_pages(response.total_pages);
-
-                        if ( response.total_pages &gt; 1 )
-                                tablenav.removeClass('one-page');
-
-                        $('.current-page').val($.query.GET('paged'));
-
-                        // Disable buttons that should noop.
-                        tablenav.find('.first-page, .prev-page').toggleClass('disabled', 1 == $.query.GET('paged'));
-                        tablenav.find('.next-page, .last-page').toggleClass('disabled', response.total_pages == $.query.GET('paged'));
-
-                        $('th.column-cb :input').prop('checked', false);
-
-                        if ( history.replaceState ) {
-                                history.replaceState({}, '', location.pathname + $.query);
-                        }
-
-                        if ( this._callback )
-                                this._callback();
-                }
-        },
-
-        handle_error: function() {
-                this.stop_loading();
-
-                $('h2').after('&lt;div class=&quot;error ajax below-h2&quot;&gt;&lt;p&gt;' + listTableL10n.error + '&lt;/p&gt;&lt;/div&gt;');
-        },
-
-        start_loading: function() {
-                this.loading = true;
-
-                $('.error.ajax').remove();
-
-                $('.list-ajax-loading').css('visibility', 'visible');
-        },
-
-        stop_loading: function() {
-                this.loading = false;
-
-                $('.list-ajax-loading').css('visibility', 'hidden');
-        }
-}
-
-listTable.init();
-
-// Ajaxify various UI elements
-
-        function change_page(paged, $el) {
-                if ( paged &lt; 1 )
-                        paged = 1;
-
-                if ( paged &gt; listTable.get_total_pages() )
-                        paged = listTable.get_total_pages();
-
-                $(listTable).trigger('beforeChangePage');
-                listTable.update_rows({'paged': paged}, false, function() {
-                        if ( $el.parents('.tablenav.bottom').length )
-                                scrollTo(0, 0);
-
-                        $(listTable).trigger('changePage');
-                });
-        }
-
-        // pagination
-        $('.tablenav-pages a').click(function() {
-                var $el = $(this),
-                        paged = $.query.GET('paged');
-
-                switch ( $el.attr('class') ) {
-                        case 'first-page':
-                                paged = 1;
-                                break;
-                        case 'prev-page':
-                                paged -= 1;
-                                break;
-                        case 'next-page':
-                                paged += 1;
-                                break;
-                        case 'last-page':
-                                paged = listTable.get_total_pages();
-                                break;
-                }
-
-                change_page(paged, $el);
-
-                return false;
-        });
-
-        $('.current-page').keypress(function(e) {
-                if ( 13 != e.keyCode )
-                        return;
-
-                var $el = $(this);
-
-                change_page(parseInt($el.val()) || 1, $el);
-
-                return false;
-        });
-
-        // sortable columns
-        $('th.sortable a, th.sorted a').click(function() {
-
-                function get_initial_order($el) {
-                        return $.query.load( $el.find('a').attr('href') ).get('order');
-                }
-
-                var $link = $(this),
-                        $th = $link.parent('th'),
-                        thIndex = $th.index(),
-                        orderby = $.query.load( $link.attr('href') ).get('orderby'),
-                        order;
-
-                // th should include both headers in thead and tfoot
-                $th = $th.closest('table').find('thead th:eq(' + thIndex + '), tfoot th:eq(' + thIndex + ')');
-
-                if ( orderby == $.query.get('orderby') ) {
-                        // changing the direction
-                        order = ( 'asc' == $.query.get('order') ) ? 'desc' : 'asc';
-                } else {
-                        // changing the parameter
-                        order = get_initial_order($th);
-
-                        var $old_th = $('th.sorted');
-                        if ( $old_th.length ) {
-                                $old_th.removeClass('sorted').addClass('sortable');
-                                $old_th.removeClass('desc').removeClass('asc').addClass(
-                                        'asc' == get_initial_order( $old_th ) ? 'desc' : 'asc'
-                                );
-                        }
-
-                        $th.removeClass('sortable').addClass('sorted');
-                }
-
-                $th.removeClass('desc').removeClass('asc').addClass(order);
-
-                listTable.update_rows({'orderby': orderby, 'order': order}, true);
-
-                return false;
-        });
-
-        // searchbox
-        function change_search(ev) {
-                if ( 'keypress' == ev.type &amp;&amp; 13 != ev.keyCode )
-                        return;
-
-                ev.preventDefault();
-                ev.stopImmediatePropagation();
-
-                var data = $(this).parent('.search-box').find(':input').serializeObject();
-
-                listTable.update_rows(data, true, function() {
-                        if ( $('h2.nav-tab-wrapper').length )
-                                return;
-
-                        if ( 'site-users-network' == pagenow || 'site-themes-network' == pagenow ) {
-                                $('h4.search-text').remove();
-
-                                if ( data.s )
-                                        $('ul.subsubsub').after($('&lt;h4 class=&quot;clear search-text&quot;&gt;').html(
-                                                listTableL10n.search.replace('%s', this.htmlencode(data.s))
-                                        ));
-                        } else {
-                                $('h2 .subtitle').remove();
-
-                                if ( data.s )
-                                        $('h2').append($('&lt;span class=&quot;subtitle&quot;&gt;').html(
-                                                listTableL10n.search.replace('%s', this.htmlencode(data.s))
-                                        ));
-                        }
-                });
-        }
-        $('.search-box :submit').click(change_search);
-        $('.search-box :text').keypress(change_search);
-
-        // tablenav dropdowns
-        $('#post-query-submit').click(function() {
-                var args = {};
-
-                $(this).parents('.actions').find('select[name!=&quot;action&quot;]').each(function() {
-                        var $el = $(this);
-
-                        args[$el.attr('name')] = $el.val();
-                });
-
-                listTable.update_rows(args, true);
-
-                return false;
-        });
-
-        // view switch
-        $('.view-switch a').click(function() {
-                var $this = $(this);
-
-                listTable.update_rows({'mode': $.query.load($this.attr('href')).get('mode')}, false, function() {
-                        $('.view-switch .current').removeClass('current');
-                        $this.addClass('current');
-                });
-
-                return false;
-        });
-});
-
</del></span></pre></div>
<a id="trunkwpadminjslisttablejs"></a>
<div class="delfile"><h4>Deleted: trunk/wp-admin/js/list-table.js (18027 => 18028)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/js/list-table.js        2011-05-25 01:04:12 UTC (rev 18027)
+++ trunk/wp-admin/js/list-table.js        2011-05-25 01:06:24 UTC (rev 18028)
</span><span class="lines">@@ -1 +0,0 @@
</span><del>-jQuery(document).ready(function(a){window.listTable={init:function(){this.loading=false;this.reset(&quot;.tablenav, .search-box, .wp-list-table&quot;);if(&quot;&quot;==a.query.GET(&quot;paged&quot;)){a.query.SET(&quot;paged&quot;,1)}this.set_total_pages();this.$tbody=a(&quot;#the-list, #the-comment-list&quot;)},reset:function(d){d=a(d);a(&quot;input&quot;,d).each(function(){this.value=this.defaultValue;this.checked=this.defaultChecked});a(&quot;select&quot;,d).each(function(){var e=a(&quot;option&quot;,this),f=false;e.each(function(){this.selected=this.defaultSelected;f=f||this.defaultSelected});if(!this.multiple&amp;&amp;!f){e[0].selected=true}});a(&quot;textarea&quot;,d).each(function(){this.value=this.defaultValue})},set_total_pages:function(e){var d=a(&quot;.last-page&quot;).attr(&quot;href&quot;);if(d){this.total_pages=e||a.query.load(d).get(&quot;paged&quot;)}},get_total_pages:function(){return this.total_pages},htmlencode:function(d){return a(&quot;&lt;div
 /&gt;&quot;).text(d).html()},update_rows:function(e,d,h){if(this.loading){return false}var g=false,f={};a.each(e,function(i,j){if(j!=a.query.GET(i)){a.query.SET(i,j);g=true}});if(!g){return false}this.start_loading();if(d){a.query.SET(&quot;paged&quot;,1)}a.each(a.query.get(),function(i,j){if(true===j){f[i]=&quot;&quot;}else{f[i]=j}});this._callback=h;this.fetch_list(f,a.proxy(this,&quot;handle_success&quot;),a.proxy(this,&quot;handle_error&quot;));return true},fetch_list:function(e,f,d){e=a.extend(e,{action:&quot;fetch-list&quot;,list_args:list_args,_ajax_fetch_list_nonce:a(&quot;#_ajax_fetch_list_nonce&quot;).val()});a.ajax({url:ajaxurl,global:false,dataType:&quot;json&quot;,data:e,success:f,error:d})},handle_success:function(d){if(&quot;object&quot;!=typeof d){this.handle_error()}else{var e=a(&quot;.tablenav-pages&quot;);this.stop_loading();a(&quot;div.updated, div.error&quot;).not(&quot;.persistent, .inline&quot;).remove();this.$tbody.html(d.rows);a(&quot;.displaying-num
 &quot;).html(d.total_items_i18n);a(&quot;.total-pages&quot;).html(d.total_pages_i18n);this.set_total_pages(d.total_pages);if(d.total_pages&gt;1){e.removeClass(&quot;one-page&quot;)}a(&quot;.current-page&quot;).val(a.query.GET(&quot;paged&quot;));e.find(&quot;.first-page, .prev-page&quot;).toggleClass(&quot;disabled&quot;,1==a.query.GET(&quot;paged&quot;));e.find(&quot;.next-page, .last-page&quot;).toggleClass(&quot;disabled&quot;,d.total_pages==a.query.GET(&quot;paged&quot;));a(&quot;th.column-cb :input&quot;).prop(&quot;checked&quot;,false);if(history.replaceState){history.replaceState({},&quot;&quot;,location.pathname+a.query)}if(this._callback){this._callback()}}},handle_error:function(){this.stop_loading();a(&quot;h2&quot;).after('&lt;div class=&quot;error ajax below-h2&quot;&gt;&lt;p&gt;'+listTableL10n.error+&quot;&lt;/p&gt;&lt;/div&gt;&quot;)},start_loading:function(){this.loading=true;a(&quot;.error.ajax&quot;).remove();a(&quot;.list-ajax-loading&quot;).css(&quot;visi
 bility&quot;,&quot;visible&quot;)},stop_loading:function(){this.loading=false;a(&quot;.list-ajax-loading&quot;).css(&quot;visibility&quot;,&quot;hidden&quot;)}};listTable.init();function b(e,d){if(e&lt;1){e=1}if(e&gt;listTable.get_total_pages()){e=listTable.get_total_pages()}a(listTable).trigger(&quot;beforeChangePage&quot;);listTable.update_rows({paged:e},false,function(){if(d.parents(&quot;.tablenav.bottom&quot;).length){scrollTo(0,0)}a(listTable).trigger(&quot;changePage&quot;)})}a(&quot;.tablenav-pages a&quot;).click(function(){var e=a(this),d=a.query.GET(&quot;paged&quot;);switch(e.attr(&quot;class&quot;)){case&quot;first-page&quot;:d=1;break;case&quot;prev-page&quot;:d-=1;break;case&quot;next-page&quot;:d+=1;break;case&quot;last-page&quot;:d=listTable.get_total_pages();break}b(d,e);return false});a(&quot;.current-page&quot;).keypress(function(f){if(13!=f.keyCode){return}var d=a(this);b(parseInt(d.val())||1,d);return false});a(&quot;th.sortable a, th.sorted a&quot;).cli
 ck(function(){function i(k){return a.query.load(k.find(&quot;a&quot;).attr(&quot;href&quot;)).get(&quot;order&quot;)}var f=a(this),h=f.parent(&quot;th&quot;),g=h.index(),j=a.query.load(f.attr(&quot;href&quot;)).get(&quot;orderby&quot;),e;h=h.closest(&quot;table&quot;).find(&quot;thead th:eq(&quot;+g+&quot;), tfoot th:eq(&quot;+g+&quot;)&quot;);if(j==a.query.get(&quot;orderby&quot;)){e=(&quot;asc&quot;==a.query.get(&quot;order&quot;))?&quot;desc&quot;:&quot;asc&quot;}else{e=i(h);var d=a(&quot;th.sorted&quot;);if(d.length){d.removeClass(&quot;sorted&quot;).addClass(&quot;sortable&quot;);d.removeClass(&quot;desc&quot;).removeClass(&quot;asc&quot;).addClass(&quot;asc&quot;==i(d)?&quot;desc&quot;:&quot;asc&quot;)}h.removeClass(&quot;sortable&quot;).addClass(&quot;sorted&quot;)}h.removeClass(&quot;desc&quot;).removeClass(&quot;asc&quot;).addClass(e);listTable.update_rows({orderby:j,order:e},true);return false});function c(d){if(&quot;keypress&quot;==d.type&amp;&amp;13!=d.keyCode){
 return}d.preventDefault();d.stopImmediatePropagation();var e=a(this).parent(&quot;.search-box&quot;).find(&quot;:input&quot;).serializeObject();listTable.update_rows(e,true,function(){if(a(&quot;h2.nav-tab-wrapper&quot;).length){return}if(&quot;site-users-network&quot;==pagenow||&quot;site-themes-network&quot;==pagenow){a(&quot;h4.search-text&quot;).remove();if(e.s){a(&quot;ul.subsubsub&quot;).after(a('&lt;h4 class=&quot;clear search-text&quot;&gt;').html(listTableL10n.search.replace(&quot;%s&quot;,this.htmlencode(e.s))))}}else{a(&quot;h2 .subtitle&quot;).remove();if(e.s){a(&quot;h2&quot;).append(a('&lt;span class=&quot;subtitle&quot;&gt;').html(listTableL10n.search.replace(&quot;%s&quot;,this.htmlencode(e.s))))}}})}a(&quot;.search-box :submit&quot;).click(c);a(&quot;.search-box :text&quot;).keypress(c);a(&quot;#post-query-submit&quot;).click(function(){var d={};a(this).parents(&quot;.actions&quot;).find('select[name!=&quot;action&quot;]').each(function(){var e=a(this);d[e.a
 ttr(&quot;name&quot;)]=e.val()});listTable.update_rows(d,true);return false});a(&quot;.view-switch a&quot;).click(function(){var d=a(this);listTable.update_rows({mode:a.query.load(d.attr(&quot;href&quot;)).get(&quot;mode&quot;)},false,function(){a(&quot;.view-switch .current&quot;).removeClass(&quot;current&quot;);d.addClass(&quot;current&quot;)});return false})});
</del><span class="cx">\ No newline at end of file
</span></span></pre>
</div>
</div>

</body>
</html>