]> source.dussan.org Git - nextcloud-server.git/commitdiff
Use attr instead of data to prevent a type convertion fix #287
authorBrice Maron <brice@bmaron.net>
Tue, 6 Nov 2012 20:32:24 +0000 (20:32 +0000)
committerBrice Maron <brice@bmaron.net>
Tue, 6 Nov 2012 20:32:24 +0000 (20:32 +0000)
settings/js/users.js

index 20bd94993bce5f309d1df454588dd22a2912efc4..e470a072ffab464a9fcae58435403ca4e1caed8f 100644 (file)
@@ -113,7 +113,7 @@ var UserList={
                if (sort) {
                        username = username.toLowerCase();
                        $('tbody tr').each(function() {
-                               if (username < $(this).data('uid').toLowerCase()) {
+                               if (username < $(this).attr('data-uid').toLowerCase()) {
                                        $(tr).insertBefore($(this));
                                        added = true;
                                        return false;