fix #1190 (Manage Users Dialog: Disable reload button while reloadng)

This commit is contained in:
rolux 2013-01-01 14:10:41 +01:00
parent ccbb954b3e
commit 197a42b9b7

View file

@ -22,6 +22,7 @@ pandora.ui.usersDialog = function() {
}).concat(['Robot']),
$reloadButton = Ox.Button({
disabled: true,
title: 'redo',
tooltip: 'Reload',
type: 'image'
@ -29,6 +30,7 @@ pandora.ui.usersDialog = function() {
.css({float: 'left', margin: '4px 2px 4px 4px'})
.bindEvent({
click: function() {
$reloadButton.options({disabled: true});
Ox.Request.clearCache('findUsers');
$list.reloadList(true);
}
@ -387,6 +389,9 @@ pandora.ui.usersDialog = function() {
)
);
},
load: function() {
$reloadButton.options({disabled: false});
},
select: selectUsers
}),