]> git.proxmox.com Git - proxmox-widget-toolkit.git/blob - data/ProxmoxProxy.js
add TimeView, TimeEdit and TaskViewer
[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 }, function() {
30
31 Ext.define('KeyValue', {
32 extend: "Ext.data.Model",
33 fields: [ 'key', 'value' ],
34 idProperty: 'key'
35 });
36
37 });