]> git.proxmox.com Git - proxmox-widget-toolkit.git/blob - data/ProxmoxProxy.js
6fe13038926080fe88f320ce2f91423e1893a4ab
[proxmox-widget-toolkit.git] / data / ProxmoxProxy.js
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 }
29 });