in manage users dialog, don't show guests by default
This commit is contained in:
parent
43d01b0490
commit
5d6f439da9
2 changed files with 10 additions and 2 deletions
|
@ -449,6 +449,7 @@
|
||||||
"canAddAnnotations": {"member": true, "staff": true, "admin": true},
|
"canAddAnnotations": {"member": true, "staff": true, "admin": true},
|
||||||
"item": "Transcript",
|
"item": "Transcript",
|
||||||
"overlay": true,
|
"overlay": true,
|
||||||
|
"showInfo": true,
|
||||||
"type": "text"
|
"type": "text"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|
|
@ -11,7 +11,7 @@ pandora.ui.usersDialog = function() {
|
||||||
|
|
||||||
$guestsCheckbox = Ox.Checkbox({
|
$guestsCheckbox = Ox.Checkbox({
|
||||||
title: 'Show Guests',
|
title: 'Show Guests',
|
||||||
value: true
|
value: false
|
||||||
})
|
})
|
||||||
.css({float: 'left', margin: '4px'})
|
.css({float: 'left', margin: '4px'})
|
||||||
.bindEvent({
|
.bindEvent({
|
||||||
|
@ -246,7 +246,14 @@ pandora.ui.usersDialog = function() {
|
||||||
],
|
],
|
||||||
columnsRemovable: true,
|
columnsRemovable: true,
|
||||||
columnsVisible: true,
|
columnsVisible: true,
|
||||||
items: pandora.api.findUsers,
|
items: function(data, callback) {
|
||||||
|
pandora.api.findUsers(Ox.extend(data, {
|
||||||
|
query: {
|
||||||
|
conditions: [{key: 'level', value: 'guest', operator: '!='}],
|
||||||
|
operator: '&'
|
||||||
|
}
|
||||||
|
}), callback);
|
||||||
|
},
|
||||||
keys: ['notes', 'groups'],
|
keys: ['notes', 'groups'],
|
||||||
max: -1,
|
max: -1,
|
||||||
scrollbarVisible: true,
|
scrollbarVisible: true,
|
||||||
|
|
Loading…
Reference in a new issue