]>
Commit | Line | Data |
---|---|---|
aff192e6 DM |
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', | |
8270ba84 DM |
21 | rows: config.rows, |
22 | readArray: config.readArray | |
aff192e6 DM |
23 | } |
24 | } | |
25 | }); | |
26 | ||
27 | me.callParent([config]); | |
28 | } | |
29 | }); |