Skip to content
Snippets Groups Projects
Commit f0355f00 authored by Renaud Le Gac's avatar Renaud Le Gac
Browse files

Load the store if it is not yet done.

parent fee91674
No related branches found
No related tags found
No related merge requests found
......@@ -30,7 +30,10 @@ App.grid.Grid = Ext.extend(Ext.grid.GridPanel, {
// initialize the underlying class. DON'T MOVE
App.grid.Grid.superclass.initComponent.call(this);
this.store.load();
// load the store if not yet done
if (this.store.getCount() === 0) {
this.store.load();
}
}
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment