From 50d5ca71d0e6ea1c8adbb39f99a82aebda1914b4 Mon Sep 17 00:00:00 2001 From: Brice Maron Date: Tue, 6 Nov 2012 20:32:24 +0000 Subject: [PATCH] Use attr instead of data to prevent a type convertion fix #287 --- settings/js/users.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/settings/js/users.js b/settings/js/users.js index 20bd94993bc..e470a072ffa 100644 --- a/settings/js/users.js +++ b/settings/js/users.js @@ -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;