From 58215ca1a64381150a11149c1ab33b0d4c5148bb Mon Sep 17 00:00:00 2001 From: rolux Date: Mon, 16 Apr 2012 17:30:25 +0000 Subject: [PATCH] usersDialog: only show registered users as enabled --- static/js/pandora/usersDialog.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/static/js/pandora/usersDialog.js b/static/js/pandora/usersDialog.js index fb9ba213..f04b6908 100644 --- a/static/js/pandora/usersDialog.js +++ b/static/js/pandora/usersDialog.js @@ -90,7 +90,7 @@ pandora.ui.usersDialog = function() { visible: false, }, { - format: function(value) { + format: function(value, data) { return $('') .attr({ src: Ox.UI.getImageURL('symbolCheck') @@ -99,7 +99,9 @@ pandora.ui.usersDialog = function() { width: '10px', height: '10px', padding: '3px', - opacity: value ? 0 : 1 + opacity: value || [ + 'guest', 'robot' + ].indexOf(data.level) > 1 ? 0 : 1 }); }, id: 'disabled',