reload user dialog after close

This commit is contained in:
rolux 2011-11-11 18:55:13 +00:00
parent 2f01ab0aa2
commit ed06db651e
2 changed files with 6 additions and 5 deletions

View file

@ -274,9 +274,7 @@ pandora.ui.mainMenu = function() {
pandora.$ui.eventsDialog = pandora.ui.eventsDialog() pandora.$ui.eventsDialog = pandora.ui.eventsDialog()
)).open(); )).open();
} else if (data.id == 'users') { } 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') { } else if (data.id == 'resetfilters') {
pandora.UI.set({ pandora.UI.set({
filters: pandora.site.user.ui.filters filters: pandora.site.user.ui.filters

View file

@ -277,10 +277,11 @@ pandora.ui.usersDialog = function() {
return item.username + ' <' + item.email + '>'; return item.username + ' <' + item.email + '>';
}).join(', ') }).join(', ')
), ),
removeOnClose: true,
title: 'E-Mail Addresses' title: 'E-Mail Addresses'
}) })
.open() .open();
}) });
} }
}), }),
Ox.Button({ Ox.Button({
@ -289,6 +290,7 @@ pandora.ui.usersDialog = function() {
width: 48 width: 48
}).bindEvent({ }).bindEvent({
click: function() { click: function() {
Ox.Request.clearCache('findUsers');
that.close(); that.close();
} }
}) })
@ -338,6 +340,7 @@ pandora.ui.usersDialog = function() {
minHeight: 256, minHeight: 256,
minWidth: 512, minWidth: 512,
padding: 0, padding: 0,
removeOnClose: true,
title: 'Manage Users', title: 'Manage Users',
width: width width: width
}), }),