forked from 0x2620/pandora
fix #1190 (Manage Users Dialog: Disable reload button while reloadng)
This commit is contained in:
parent
ccbb954b3e
commit
197a42b9b7
1 changed files with 5 additions and 0 deletions
|
@ -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
|
||||
}),
|
||||
|
||||
|
|
Loading…
Reference in a new issue