]> git.proxmox.com Git - pve-manager.git/blob - www/manager5/data/ObjectStore.js
copy data/ObjectStore.js from manager to manager5
[pve-manager.git] / www / manager5 / data / ObjectStore.js
1 Ext.define('PVE.data.ObjectStore', {
2 extend: 'PVE.data.UpdateStore',
3
4 constructor: function(config) {
5 var me = this;
6
7 config = config || {};
8
9 if (!config.storeid) {
10 config.storeid = 'pve-store-' + (++Ext.idSeed);
11 }
12
13 Ext.applyIf(config, {
14 model: 'KeyValue',
15 proxy: {
16 type: 'pve',
17 url: config.url,
18 extraParams: config.extraParams,
19 reader: {
20 type: 'jsonobject',
21 rows: config.rows,
22 readArray: config.readArray
23 }
24 }
25 });
26
27 me.callParent([config]);
28 }
29 });