]>
git.proxmox.com Git - pmg-gui.git/blob - js/VirusQuarantineOptions.js
1 Ext
.define('PMG.VirusQuarantineOptions', {
2 extend
: 'Proxmox.grid.ObjectGrid',
3 alias
: ['widget.pmgVirusQuarantineOptions'],
7 initComponent : function() {
10 me
.add_integer_row('lifetime', gettext('Lifetime (days)'),
11 { minValue
: 1, defaultValue
: 7,
14 me
.add_boolean_row('viewimages', gettext('View images'),
17 me
.add_boolean_row('allowhrefs', gettext('Allow HREFs'),
20 var baseurl
= '/config/virusquar';
22 me
.selModel
= Ext
.create('Ext.selection.RowModel', {});
26 text
: gettext('Edit'),
27 xtype
: 'proxmoxButton',
29 handler: function() { me
.run_editor() },
32 url
: '/api2/json' + baseurl
,
34 url
: '/api2/extjs' + baseurl
,
39 itemdblclick
: me
.run_editor
45 me
.on('activate', me
.rstore
.startUpdate
);
46 me
.on('destroy', me
.rstore
.stopUpdate
);
47 me
.on('deactivate', me
.rstore
.stopUpdate
);