Make entire sortable header clickable. Props batmoo. Fixes #15352

git-svn-id: http://svn.automattic.com/wordpress/trunk@16472 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
scribu 2010-11-18 21:39:22 +00:00
parent a216b1ed8f
commit d5b3719be8
4 changed files with 8 additions and 5 deletions

File diff suppressed because one or more lines are too long

View File

@ -1361,13 +1361,17 @@ table.fixed {
.sorting-indicator {
display: none;
float: left;
width: 21px;
height: 4px;
margin-top: 5px;
}
th.sortable a, th.sorted-asc a, th.sorted-desc a {
display: block;
overflow: hidden;
}
th.sortable a span, th.sorted-asc a span, th.sorted-desc a span {
float: left;
cursor: pointer;
}
th.sorted-asc .sorting-indicator, th.sorted-desc:hover .sorting-indicator, th.sortable:hover .sorting-indicator {
display: block;

View File

@ -610,8 +610,7 @@ class WP_List_Table {
$order = 'asc';
$class[] = 'sortable';
}
$column_display_name = '<a href="' . esc_url( add_query_arg( compact( 'orderby', 'order' ), $current_url ) ) . '">' . $column_display_name . '</a>';
$column_display_name .= '<div class="sorting-indicator"></div>';
$column_display_name = '<a href="' . esc_url( add_query_arg( compact( 'orderby', 'order' ), $current_url ) ) . '"><span>' . $column_display_name . '</span><span class="sorting-indicator"></span></a>';
}
$id = $with_id ? "id='$column_key'" : '';

View File

@ -478,7 +478,7 @@ function wp_default_styles( &$styles ) {
// Any rtl stylesheets that don't have a .dev version for ltr
$no_suffix = array( 'farbtastic' );
$styles->add( 'wp-admin', "/wp-admin/css/wp-admin$suffix.css", array(), '20101116a' );
$styles->add( 'wp-admin', "/wp-admin/css/wp-admin$suffix.css", array(), '20101118' );
$styles->add( 'ie', "/wp-admin/css/ie$suffix.css", array(), '20101102' );
$styles->add_data( 'ie', 'conditional', 'lte IE 7' );