summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas Reschke <lukas@owncloud.com>2015-04-13 23:30:37 +0200
committerLukas Reschke <lukas@owncloud.com>2015-04-13 23:30:37 +0200
commite36c0a0c12ca92ec6e23617a93ff57296b3ea223 (patch)
treee4ad1f571ac74e5363a1f2dc62aba76a8b4ce561
parent5f66f867b6d88ce6b82fb1f045aebf55b2ea9c20 (diff)
parent74732cc0d8ab8d5327f0bdc4da2817a02abee8a5 (diff)
downloadnextcloud-server-e36c0a0c12ca92ec6e23617a93ff57296b3ea223.tar.gz
nextcloud-server-e36c0a0c12ca92ec6e23617a93ff57296b3ea223.zip
Merge pull request #15585 from owncloud/fix-user-list
Fix user list
-rw-r--r--settings/css/settings.css5
-rw-r--r--settings/js/users/users.js6
2 files changed, 8 insertions, 3 deletions
diff --git a/settings/css/settings.css b/settings/css/settings.css
index 747e370617e..f610e96eea8 100644
--- a/settings/css/settings.css
+++ b/settings/css/settings.css
@@ -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 {
diff --git a/settings/js/users/users.js b/settings/js/users/users.js
index e67540fd117..4b46bbf898f 100644
--- a/settings/js/users/users.js
+++ b/settings/js/users/users.js
@@ -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;