Fix user list

* the name cell was changed from td to th because of accessibility
  issues - this adjusts the CSS and JS to behave like before
This commit is contained in:
Morris Jobke 2015-04-13 17:12:06 +02:00
parent 660aa7ff1e
commit 74732cc0d8
2 changed files with 8 additions and 3 deletions

View File

@ -138,6 +138,11 @@ span.usersLastLoginTooltip { white-space: nowrap; }
display : none;
}
/* because of accessibility the name cell is <th> - therefore we enforce the black color */
#userlist th.name {
color: #000000;
}
tr:hover>td.password>span, tr:hover>td.displayName>span { margin:0; cursor:pointer; }
tr:hover>td.remove>a, tr:hover>td.password>img,tr:hover>td.displayName>img, tr:hover>td.quota>img { visibility:visible; cursor:pointer; }
td.remove {

View File

@ -74,7 +74,7 @@ var UserList = {
$tr.data('displayname', user.displayname);
$tr.data('mailAddress', user.email);
$tr.data('restoreDisabled', user.isRestoreDisabled);
$tr.find('td.name').text(user.name);
$tr.find('.name').text(user.name);
$tr.find('td.displayName > span').text(user.displayname);
$tr.find('td.mailAddress > span').text(user.email);
@ -259,8 +259,8 @@ var UserList = {
rows.sort(function(a, b) {
// FIXME: inefficient way of getting the names,
// better use a data attribute
a = $(a).find('td.name').text();
b = $(b).find('td.name').text();
a = $(a).find('.name').text();
b = $(b).find('.name').text();
var firstSort = UserList.preSortSearchString(a, b);
if(typeof firstSort !== 'undefined') {
return firstSort;