Ticket #15503: 15503.2.diff
File 15503.2.diff, 4.4 KB (added by , 14 years ago) |
---|
-
wp-admin/includes/class-wp-list-table.php
480 480 481 481 $page_links = array(); 482 482 483 $disable_first = $disable_last = ''; 484 if ( $current == 1 ) 485 $disable_first = ' disabled'; 486 if ( $current == $total_items ) 487 $disable_last = ' disabled'; 488 483 489 $page_links[] = sprintf( "<a class='%s' title='%s' href='%s'>%s</a>", 484 'first-page' ,490 'first-page' . $disable_first, 485 491 esc_attr__( 'Go to the first page' ), 486 492 esc_url( remove_query_arg( 'paged', $current_url ) ), 487 493 '«' 488 494 ); 489 495 490 496 $page_links[] = sprintf( "<a class='%s' title='%s' href='%s'>%s</a>", 491 'prev-page' ,497 'prev-page' . $disable_first, 492 498 esc_attr__( 'Go to the previous page' ), 493 499 esc_url( add_query_arg( 'paged', max( 1, $current-1 ), $current_url ) ), 494 500 '‹' … … 504 510 $page_links[] = '<span class="paging-input">' . sprintf( _x( '%1$s of %2$s', 'paging' ), $html_current_page, $html_total_pages ) . '</span>'; 505 511 506 512 $page_links[] = sprintf( "<a class='%s' title='%s' href='%s'>%s</a>", 507 'next-page' ,513 'next-page' . $disable_last, 508 514 esc_attr__( 'Go to the next page' ), 509 515 esc_url( add_query_arg( 'paged', min( $total_pages, $current+1 ), $current_url ) ), 510 516 '›' 511 517 ); 512 518 513 519 $page_links[] = sprintf( "<a class='%s' title='%s' href='%s'>%s</a>", 514 'last-page' ,520 'last-page' . $disable_last, 515 521 esc_attr__( 'Go to the last page' ), 516 522 esc_url( add_query_arg( 'paged', $total_pages, $current_url ) ), 517 523 '»' -
wp-admin/js/list-table.dev.js
91 91 if ( 'object' != typeof response ) { 92 92 this.handle_error(); 93 93 } else { 94 var tablenav = $('.tablenav-pages'); 95 94 96 this.stop_loading(); 95 97 96 98 $('div.updated, div.error').not('.persistent, .inline').remove(); … … 103 105 this.set_total_pages(response.total_pages); 104 106 105 107 if ( response.total_pages > 1 ) 106 $('.tablenav-pages').removeClass('one-page');108 tablenav.removeClass('one-page'); 107 109 108 110 $('.current-page').val($.query.GET('paged')); 109 111 112 // Disable buttons that should noop. 113 tablenav.find('.first-page, .prev-page').toggleClass('disabled', 1 == $.query.GET('paged')); 114 tablenav.find('.next-page, .last-page').toggleClass('disabled', response.total_pages_i18n == $.query.GET('paged')); 115 110 116 $('th.column-cb :input').attr('checked', false); 111 117 112 118 if ( history.replaceState ) { -
wp-admin/css/colors-classic.dev.css
1400 1400 } 1401 1401 1402 1402 .tablenav .tablenav-pages a { 1403 border-color: # D1E5EE;1403 border-color: #d1e5ee; 1404 1404 background: #eee url('../images/menu-bits-vs.gif?ver=20101102') repeat-x scroll left -379px; 1405 1405 } 1406 1406 … … 1413 1413 color: #fff !important; 1414 1414 } 1415 1415 1416 .tablenav .tablenav-pages a.disabled { 1417 color: #aaa; 1418 } 1419 1420 .tablenav .tablenav-pages a.disabled:hover { 1421 color: #aaa; 1422 border-color: #d1e5ee; 1423 } 1424 1425 .tablenav .tablenav-pages a.disabled:active { 1426 color: #aaa !important; 1427 } 1428 1416 1429 .tablenav .tablenav-pages .current { 1417 1430 background: #dfdfdf; 1418 1431 border-color: #d3d3d3; -
wp-admin/css/colors-fresh.dev.css
1408 1408 color: #fff !important; 1409 1409 } 1410 1410 1411 .tablenav .tablenav-pages a.disabled { 1412 color: #aaa; 1413 } 1414 1415 .tablenav .tablenav-pages a.disabled:hover { 1416 color: #aaa; 1417 border-color: #e3e3e3; 1418 } 1419 1420 .tablenav .tablenav-pages a.disabled:active { 1421 color: #aaa !important; 1422 } 1423 1411 1424 .tablenav .tablenav-pages .current { 1412 1425 background: #dfdfdf; 1413 1426 border-color: #d3d3d3; -
wp-admin/css/wp-admin.dev.css
1493 1493 border-radius: 5px; 1494 1494 } 1495 1495 1496 .tablenav .tablenav-pages a.disabled:hover { 1497 cursor: default; 1498 } 1499 1500 .tablenav .tablenav-pages a.disabled:active { 1501 cursor: default; 1502 } 1503 1496 1504 .tablenav .displaying-num { 1497 1505 margin-right: 10px; 1498 1506 font-size: 12px;