mirror of
https://git.proxmox.com/git/proxmox-widget-toolkit
synced 2025-05-08 07:30:06 +00:00
30 lines
560 B
JavaScript
30 lines
560 B
JavaScript
Ext.define('Proxmox.RestProxy', {
|
|
extend: 'Ext.data.RestProxy',
|
|
alias : 'proxy.proxmox',
|
|
|
|
pageParam : null,
|
|
startParam: null,
|
|
limitParam: null,
|
|
groupParam: null,
|
|
sortParam: null,
|
|
filterParam: null,
|
|
noCache : false,
|
|
|
|
afterRequest: function(request, success) {
|
|
this.fireEvent('afterload', this, request, success);
|
|
return;
|
|
},
|
|
|
|
constructor: function(config) {
|
|
|
|
Ext.applyIf(config, {
|
|
reader: {
|
|
type: 'json',
|
|
rootProperty: config.root || 'data'
|
|
}
|
|
});
|
|
|
|
this.callParent([config]);
|
|
}
|
|
});
|