Ticket #15503: 15503.diff
File 15503.diff, 3.5 KB (added by , 14 years ago) |
---|
-
wp-admin/css/colors-classic.dev.css
1421 1421 color: #fff !important; 1422 1422 } 1423 1423 1424 .tablenav .tablenav-pages a.disabled, 1425 .tablenav .tablenav-pages a.disabled:hover, 1426 .tablenav .tablenav-pages a.disabled:active { 1427 color: #ccc !important; 1428 border-color: #ddd; 1429 cursor: default; 1430 } 1431 1424 1432 .tablenav .tablenav-pages .current { 1425 1433 background: #dfdfdf; 1426 1434 border-color: #d3d3d3; -
wp-admin/css/colors-fresh.dev.css
1418 1418 color: #fff !important; 1419 1419 } 1420 1420 1421 .tablenav .tablenav-pages a.disabled, 1422 .tablenav .tablenav-pages a.disabled:hover, 1423 .tablenav .tablenav-pages a.disabled:active { 1424 color: #ccc !important; 1425 border-color: #e3e3e3; 1426 cursor: default; 1427 } 1428 1421 1429 .tablenav .tablenav-pages .current { 1422 1430 background: #dfdfdf; 1423 1431 border-color: #d3d3d3; -
wp-admin/includes/class-wp-list-table.php
459 459 $page_links = array(); 460 460 461 461 $page_links[] = sprintf( "<a class='%s' title='%s' href='%s'>%s</a>", 462 'first-page' ,462 'first-page' . ( $current == 1 ? ' disabled' : '' ), 463 463 esc_attr__( 'Go to the first page' ), 464 464 esc_url( remove_query_arg( 'paged', $current_url ) ), 465 465 '««' 466 466 ); 467 467 468 468 $page_links[] = sprintf( "<a class='%s' title='%s' href='%s'>%s</a>", 469 'prev-page' ,469 'prev-page' . ( $current == 1 ? ' disabled' : '' ), 470 470 esc_attr__( 'Go to the previous page' ), 471 471 esc_url( add_query_arg( 'paged', max( 1, $current-1 ), $current_url ) ), 472 472 '«' … … 482 482 $page_links[] = sprintf( _x( '%s of %s', 'paging' ), $html_current_page, $html_total_pages ); 483 483 484 484 $page_links[] = sprintf( "<a class='%s' title='%s' href='%s'>%s</a>", 485 'next-page' ,485 'next-page' . ( $current == $total_pages ? ' disabled' : '' ), 486 486 esc_attr__( 'Go to the next page' ), 487 487 esc_url( add_query_arg( 'paged', min( $total_pages, $current+1 ), $current_url ) ), 488 488 '»' 489 489 ); 490 490 491 491 $page_links[] = sprintf( "<a class='%s' title='%s' href='%s'>%s</a>", 492 'last-page' ,492 'last-page' . ( $current == $total_pages ? ' disabled' : '' ), 493 493 esc_attr__( 'Go to the last page' ), 494 494 esc_url( add_query_arg( 'paged', $total_pages, $current_url ) ), 495 495 '»»' -
wp-admin/js/list-table.dev.js
37 37 if ( paged < 1 || paged > this.total_pages ) 38 38 return false; 39 39 40 var $pageLinks = $('.tablenav-pages a').removeClass('disabled'); 41 42 if( paged == 1 ) { 43 $pageLinks.filter('.prev-page,.first-page').addClass('disabled'); 44 } else if( paged == this.get_total_pages() ) { 45 $pageLinks.filter('.next-page,.last-page').addClass('disabled'); 46 } 47 40 48 this.update_rows({'paged': paged}); 41 49 }, 42 50 … … 155 163 $('.tablenav-pages a').click(function() { 156 164 var paged = $.query.GET('paged'); 157 165 166 if( $(this).hasClass('disabled') ) 167 return false; 168 158 169 switch ( $(this).attr('class') ) { 159 170 case 'first-page': 160 171 paged = 1;