From 2f115f2dfc09c2c830d8db158ff2c8fb4873b90d Mon Sep 17 00:00:00 2001 From: rolux Date: Sat, 12 Nov 2011 10:39:50 +0000 Subject: [PATCH] add (non-functional) 'show guests' ui to manage users dialog --- static/js/pandora/usersDialog.js | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/static/js/pandora/usersDialog.js b/static/js/pandora/usersDialog.js index b5a8ada3..c78ecfee 100644 --- a/static/js/pandora/usersDialog.js +++ b/static/js/pandora/usersDialog.js @@ -9,6 +9,12 @@ pandora.ui.usersDialog = function() { numberOfUsers = 0, userLevels = ['member', 'friend', 'staff', 'admin'], + $guestsCheckbox = Ox.Checkbox({ + checked: true, + title: 'Show Guests' + }) + .css({float: 'left', margin: '4px'}), + $findSelect = Ox.Select({ items: [ {id: 'all', title: 'Find: All', checked: true}, @@ -200,9 +206,7 @@ pandora.ui.usersDialog = function() { keys: ['notes'], max: 1, scrollbarVisible: true, - sort: [ - {key: 'username', operator: '+'} - ] + sort: [{key: 'lastseen', operator: '-'}] }) .bindEvent({ init: function(data) { @@ -303,10 +307,8 @@ pandora.ui.usersDialog = function() { elements: [ { element: Ox.Bar({size: 24}) - .append($status) - .append( - $findElement - ), + .append($guestsCheckbox) + .append($findElement), size: 24 }, {