usersDialog: only show registered users as enabled
This commit is contained in:
parent
4f8d327fd5
commit
58215ca1a6
1 changed files with 4 additions and 2 deletions
|
@ -90,7 +90,7 @@ pandora.ui.usersDialog = function() {
|
||||||
visible: false,
|
visible: false,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
format: function(value) {
|
format: function(value, data) {
|
||||||
return $('<img>')
|
return $('<img>')
|
||||||
.attr({
|
.attr({
|
||||||
src: Ox.UI.getImageURL('symbolCheck')
|
src: Ox.UI.getImageURL('symbolCheck')
|
||||||
|
@ -99,7 +99,9 @@ pandora.ui.usersDialog = function() {
|
||||||
width: '10px',
|
width: '10px',
|
||||||
height: '10px',
|
height: '10px',
|
||||||
padding: '3px',
|
padding: '3px',
|
||||||
opacity: value ? 0 : 1
|
opacity: value || [
|
||||||
|
'guest', 'robot'
|
||||||
|
].indexOf(data.level) > 1 ? 0 : 1
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
id: 'disabled',
|
id: 'disabled',
|
||||||
|
|
Loading…
Reference in a new issue