in manage users dialog, don't show guests by default

This commit is contained in:
rolux 2012-02-05 11:19:40 +00:00
parent 43d01b0490
commit 5d6f439da9
2 changed files with 10 additions and 2 deletions

View file

@ -449,6 +449,7 @@
"canAddAnnotations": {"member": true, "staff": true, "admin": true},
"item": "Transcript",
"overlay": true,
"showInfo": true,
"type": "text"
}
],

View file

@ -11,7 +11,7 @@ pandora.ui.usersDialog = function() {
$guestsCheckbox = Ox.Checkbox({
title: 'Show Guests',
value: true
value: false
})
.css({float: 'left', margin: '4px'})
.bindEvent({
@ -246,7 +246,14 @@ pandora.ui.usersDialog = function() {
],
columnsRemovable: 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'],
max: -1,
scrollbarVisible: true,