]>
Commit | Line | Data |
---|---|---|
0bb29d35 DM |
1 | Ext.define('Proxmox.RestProxy', { |
2 | extend: 'Ext.data.RestProxy', | |
3 | alias : 'proxy.proxmox', | |
4 | ||
5 | pageParam : null, | |
6 | startParam: null, | |
7 | limitParam: null, | |
8 | groupParam: null, | |
9 | sortParam: null, | |
10 | filterParam: null, | |
11 | noCache : false, | |
12 | ||
13 | afterRequest: function(request, success) { | |
14 | this.fireEvent('afterload', this, request, success); | |
15 | return; | |
16 | }, | |
17 | ||
18 | constructor: function(config) { | |
19 | ||
20 | Ext.applyIf(config, { | |
21 | reader: { | |
22 | type: 'json', | |
23 | rootProperty: config.root || 'data' | |
24 | } | |
25 | }); | |
26 | ||
27 | this.callParent([config]); | |
28 | } | |
06694509 DM |
29 | }, function() { |
30 | ||
31 | Ext.define('KeyValue', { | |
32 | extend: "Ext.data.Model", | |
33 | fields: [ 'key', 'value' ], | |
34 | idProperty: 'key' | |
35 | }); | |
36 | ||
0bb29d35 | 37 | }); |