forked from 0x2620/pandora
add reload button to manage users dialog, fixes #685
This commit is contained in:
parent
72e7f0dc09
commit
5c983597c4
1 changed files with 14 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue