From 5d6f439da94eefbe90bf86b8ee87e4e268730cfd Mon Sep 17 00:00:00 2001 From: rolux Date: Sun, 5 Feb 2012 11:19:40 +0000 Subject: [PATCH] in manage users dialog, don't show guests by default --- pandora/padma.jsonc | 1 + static/js/pandora/usersDialog.js | 11 +++++++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/pandora/padma.jsonc b/pandora/padma.jsonc index fea5ee42..8f06bc49 100644 --- a/pandora/padma.jsonc +++ b/pandora/padma.jsonc @@ -449,6 +449,7 @@ "canAddAnnotations": {"member": true, "staff": true, "admin": true}, "item": "Transcript", "overlay": true, + "showInfo": true, "type": "text" } ], diff --git a/static/js/pandora/usersDialog.js b/static/js/pandora/usersDialog.js index ed13ead4..f4a52802 100644 --- a/static/js/pandora/usersDialog.js +++ b/static/js/pandora/usersDialog.js @@ -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,