Ticket #16098: 16098.2.diff
| File 16098.2.diff, 1.5 KB (added by koopersmith, 2 years ago) |
|---|
-
wp-admin/includes/class-wp-list-table.php
688 688 $this->display_tablenav( 'top' ); 689 689 690 690 ?> 691 <table class=" <?php echo implode( ' ', $this->get_table_classes() ); ?>" cellspacing="0">691 <table class="wp-list-table <?php echo implode( ' ', $this->get_table_classes() ); ?>" cellspacing="0"> 692 692 <thead> 693 693 <tr> 694 694 <?php $this->print_column_headers(); ?> -
wp-admin/js/list-table.dev.js
5 5 init: function() { 6 6 this.loading = false; 7 7 8 $('form').each(function() { 9 this.reset(); 10 }); 8 this.reset( '.tablenav, .search-box, .wp-list-table' ); 11 9 12 10 if ( '' == $.query.GET('paged') ) 13 11 $.query.SET('paged', 1); … … 16 14 this.$tbody = $('#the-list, #the-comment-list'); 17 15 }, 18 16 17 reset: function( context ) { 18 context = $( context ); 19 $('input', context).each( function(){ 20 this.value = this.defaultValue; 21 this.checked = this.defaultChecked; 22 }); 23 $('option', context).each( function(){ 24 this.selected = this.defaultSelected; 25 }); 26 $('textarea', context).each( function(){ 27 this.value = this.defaultValue; 28 }); 29 }, 30 19 31 // paging 20 32 set_total_pages: function(num) { 21 33 var last_page_url = $('.last-page').attr('href');
