Commit 0489e7c8 authored by Dietmar Maurer's avatar Dietmar Maurer

fix load Mask in ObjectGrid

parent c8aa7df5
......@@ -88,6 +88,12 @@ Ext.define('PVE.grid.ObjectGrid', {
var load_count = 0;
me.mon(rstore, 'beforeload', function(s, operation, eOpts) {
if (!load_count) {
me.setLoading(true);
}
});
me.mon(rstore, 'load', function(s, records, success) {
load_count++;
......@@ -120,12 +126,6 @@ Ext.define('PVE.grid.ObjectGrid', {
]
});
me.on('afterlayout', function() {
if (!load_count) {
me.setLoading(true);
}
});
me.callParent();
}
});
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