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:
parent
660aa7ff1e
commit
74732cc0d8
|
@ -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 {
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue