From db9dd437400e30e5f087a67379d6247f8f6394eb Mon Sep 17 00:00:00 2001 From: rolux Date: Wed, 21 Mar 2012 08:07:09 +0000 Subject: [PATCH] remove test case from users dialog --- static/js/pandora/usersDialog.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/static/js/pandora/usersDialog.js b/static/js/pandora/usersDialog.js index 68e8e273c..faacd0df4 100644 --- a/static/js/pandora/usersDialog.js +++ b/static/js/pandora/usersDialog.js @@ -129,9 +129,10 @@ pandora.ui.usersDialog = function() { { align: 'center', format: function(value, data) { + var userLevel = data.useragent.indexOf('Googlebot') > -1 + ? 'Robot' : value; return Ox.Theme.formatColorLevel( - data.useragent.indexOf('Googlebot') > -1 || data.username == 'rlx' - ? 5 : pandora.site.userLevels.indexOf(value), + userLevels.indexOf(userLevel), userLevels, [0, 300] );