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']),
|
}).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
|
||||||
}),
|
}),
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue