]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix user list
authorMorris Jobke <hey@morrisjobke.de>
Mon, 13 Apr 2015 15:12:06 +0000 (17:12 +0200)
committerMorris Jobke <hey@morrisjobke.de>
Mon, 13 Apr 2015 19:43:36 +0000 (21:43 +0200)
* the name cell was changed from td to th because of accessibility
  issues - this adjusts the CSS and JS to behave like before

settings/css/settings.css
settings/js/users/users.js

index 747e370617e62fc80fc733f5b583bbad04bb76b4..f610e96eea804aa32a2d0ec1034a8de5e61cb094 100644 (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 {
index e67540fd117479a4ce6d1e339154e5217be56b99..4b46bbf898fde38cdcb4d8eeb1ce81e897b5a294 100644 (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;