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