mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-08 19:41:44 +00:00
do not use form.setLoading()
Instead we simply disable the filed during the load.
This commit is contained in:
parent
a285f01438
commit
4ed2d19b05
@ -83,21 +83,23 @@ Ext.define('PVE.form.ComboGrid', {
|
|||||||
|
|
||||||
me.callParent();
|
me.callParent();
|
||||||
|
|
||||||
me.store.on('beforeload', function() {
|
me.store.on('beforeload', function() {
|
||||||
var form = me.up('form');
|
if (!me.isDisabled()) {
|
||||||
if (form) {
|
me.setDisabled(true);
|
||||||
form.setLoading(true, true);
|
me.enableAfterLoad = true;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
// hack: autoSelect does not work
|
// hack: autoSelect does not work
|
||||||
me.store.on('load', function(store, r, success, o) {
|
me.store.on('load', function(store, r, success, o) {
|
||||||
var form = me.up('form');
|
|
||||||
if (form) {
|
|
||||||
form.setLoading(false);
|
|
||||||
}
|
|
||||||
if (success) {
|
if (success) {
|
||||||
me.clearInvalid();
|
me.clearInvalid();
|
||||||
|
|
||||||
|
if (me.enableAfterLoad) {
|
||||||
|
delete me.enableAfterLoad;
|
||||||
|
me.setDisabled(false);
|
||||||
|
}
|
||||||
|
|
||||||
var def = me.getValue();
|
var def = me.getValue();
|
||||||
if (def) {
|
if (def) {
|
||||||
me.setValue(def, true); // sync with grid
|
me.setValue(def, true); // sync with grid
|
||||||
|
Loading…
Reference in New Issue
Block a user