diff --git a/static/js/pandora/menu.js b/static/js/pandora/menu.js index 34e750e09..8a23498f9 100644 --- a/static/js/pandora/menu.js +++ b/static/js/pandora/menu.js @@ -274,9 +274,7 @@ pandora.ui.mainMenu = function() { pandora.$ui.eventsDialog = pandora.ui.eventsDialog() )).open(); } else if (data.id == 'users') { - (pandora.$ui.usersDialog || ( - pandora.$ui.usersDialog = pandora.ui.usersDialog()) - ).open(); + pandora.$ui.usersDialog = pandora.ui.usersDialog().open(); } else if (data.id == 'resetfilters') { pandora.UI.set({ filters: pandora.site.user.ui.filters diff --git a/static/js/pandora/usersDialog.js b/static/js/pandora/usersDialog.js index 3c3442bdc..b5a8ada32 100644 --- a/static/js/pandora/usersDialog.js +++ b/static/js/pandora/usersDialog.js @@ -277,10 +277,11 @@ pandora.ui.usersDialog = function() { return item.username + ' <' + item.email + '>'; }).join(', ') ), + removeOnClose: true, title: 'E-Mail Addresses' }) - .open() - }) + .open(); + }); } }), Ox.Button({ @@ -289,6 +290,7 @@ pandora.ui.usersDialog = function() { width: 48 }).bindEvent({ click: function() { + Ox.Request.clearCache('findUsers'); that.close(); } }) @@ -338,6 +340,7 @@ pandora.ui.usersDialog = function() { minHeight: 256, minWidth: 512, padding: 0, + removeOnClose: true, title: 'Manage Users', width: width }),