Commit fe7d9f08 authored by Dietmar Maurer's avatar Dietmar Maurer

do not use form.setLoading()

Instead we simply disable the filed during the load.
parent 52083148
......@@ -83,21 +83,23 @@ Ext.define('PVE.form.ComboGrid', {
me.callParent();
me.store.on('beforeload', function() {
var form = me.up('form');
if (form) {
form.setLoading(true, true);
me.store.on('beforeload', function() {
if (!me.isDisabled()) {
me.setDisabled(true);
me.enableAfterLoad = true;
}
});
// hack: autoSelect does not work
me.store.on('load', function(store, r, success, o) {
var form = me.up('form');
if (form) {
form.setLoading(false);
}
if (success) {
me.clearInvalid();
if (me.enableAfterLoad) {
delete me.enableAfterLoad;
me.setDisabled(false);
}
var def = me.getValue();
if (def) {
me.setValue(def, true); // sync with grid
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment