#541612 by mgifford: Added meaningful alt attribute to sortable table header links.
parent
bbf9c0a674
commit
e9ef3ac2f2
|
|
@ -1756,10 +1756,10 @@ function theme_table_select_header_cell() {
|
||||||
*/
|
*/
|
||||||
function theme_tablesort_indicator($variables) {
|
function theme_tablesort_indicator($variables) {
|
||||||
if ($variables['style'] == "asc") {
|
if ($variables['style'] == "asc") {
|
||||||
return theme('image', array('path' => 'misc/arrow-asc.png', 'alt' => t('sort icon'), 'title' => t('sort ascending')));
|
return theme('image', array('path' => 'misc/arrow-asc.png', 'alt' => t('sort ascending'), 'title' => t('sort ascending')));
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
return theme('image', array('path' => 'misc/arrow-desc.png', 'alt' => t('sort icon'), 'title' => t('sort descending')));
|
return theme('image', array('path' => 'misc/arrow-desc.png', 'alt' => t('sort descending'), 'title' => t('sort descending')));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -63,10 +63,10 @@ function seven_tablesort_indicator($variables) {
|
||||||
$style = $variables['style'];
|
$style = $variables['style'];
|
||||||
$theme_path = drupal_get_path('theme', 'seven');
|
$theme_path = drupal_get_path('theme', 'seven');
|
||||||
if ($style == "asc") {
|
if ($style == "asc") {
|
||||||
return theme('image', array('path' => $theme_path . '/images/arrow-asc.png', 'alt' => t('sort icon'), 'title' => t('sort ascending')));
|
return theme('image', array('path' => $theme_path . '/images/arrow-asc.png', 'alt' => t('sort ascending'), 'title' => t('sort ascending')));
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
return theme('image', array('path' => $theme_path . '/images/arrow-desc.png', 'alt' => t('sort icon'), 'title' => t('sort descending')));
|
return theme('image', array('path' => $theme_path . '/images/arrow-desc.png', 'alt' => t('sort descending'), 'title' => t('sort descending')));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue