]>
git.proxmox.com Git - pmg-gui.git/blob - js/FilterProxy.js
1 Ext
.define('PMG.FilterProxy', {
2 extend
: 'Proxmox.RestProxy',
3 alias
: 'proxy.pmgfilterproxy',
5 filterId
: undefined, // 'x-gridfilter-XXXXX'
7 getParams: function(operation
) {
9 if (!operation
.isReadOperation
) {
12 var params
= me
.callParent(arguments
);
14 var filters
= operation
.getFilters() || [];
15 for (i
= 0; i
< filters
.length
; i
++) {
16 var filter
= filters
[i
];
17 if (filter
.config
.id
=== me
.filterId
) {
18 var v
= filter
.getValue();
19 if (v
!== undefined && v
!== '') {