copy data/ObjectStore.js from manager to manager5

This commit is contained in:
Dietmar Maurer 2015-07-03 11:29:11 +02:00
parent ffa0c8ec0a
commit ff6260d6ba

View File

@ -0,0 +1,29 @@
Ext.define('PVE.data.ObjectStore', {
extend: 'PVE.data.UpdateStore',
constructor: function(config) {
var me = this;
config = config || {};
if (!config.storeid) {
config.storeid = 'pve-store-' + (++Ext.idSeed);
}
Ext.applyIf(config, {
model: 'KeyValue',
proxy: {
type: 'pve',
url: config.url,
extraParams: config.extraParams,
reader: {
type: 'jsonobject',
rows: config.rows,
readArray: config.readArray
}
}
});
me.callParent([config]);
}
});