add reload button to manage users dialog, fixes #685

This commit is contained in:
rolux 2012-03-20 07:19:03 +00:00
parent 72e7f0dc09
commit 5c983597c4

View file

@ -9,11 +9,23 @@ pandora.ui.usersDialog = function() {
formWidth = 256, formWidth = 256,
numberOfUsers = 0, numberOfUsers = 0,
$reloadButton = Ox.Button({
title: 'redo',
tooltip: 'Reload',
type: 'image'
})
.css({float: 'left', margin: '4px 2px 4px 4px'})
.bindEvent({
click: function() {
$list.reloadList(true);
}
}),
$guestsCheckbox = Ox.Checkbox({ $guestsCheckbox = Ox.Checkbox({
title: 'Show Guests', title: 'Show Guests',
value: false value: false
}) })
.css({float: 'left', margin: '4px'}) .css({float: 'left', margin: '4px 4px 4px 2px'})
.bindEvent({ .bindEvent({
change: updateList change: updateList
}), }),
@ -320,6 +332,7 @@ pandora.ui.usersDialog = function() {
elements: [ elements: [
{ {
element: Ox.Bar({size: 24}) element: Ox.Bar({size: 24})
.append($reloadButton)
.append($guestsCheckbox) .append($guestsCheckbox)
.append($findElement), .append($findElement),
size: 24 size: 24