]>
git.proxmox.com Git - pmg-gui.git/blob - js/MailProxyRelaying.js
1 Ext
.define('PMG.MailProxyRelaying', {
2 extend
: 'Proxmox.grid.ObjectGrid',
3 alias
: ['widget.pmgMailProxyRelaying'],
5 initComponent : function() {
8 me
.add_text_row('relay', gettext('Default Relay'),
9 { defaultValue
: Proxmox
.Utils
.noneText
});
11 me
.add_integer_row('relayport', gettext('SMTP Port'),
12 { defaultValue
: 25, deleteEmpty
: true,
13 minValue
: 1, maxValue
: 65535 });
15 me
.add_boolean_row('relaynomx', gettext('Disable MX lookup'));
17 me
.add_text_row('smarthost', gettext('Smarthost'),
18 { defaultValue
: Proxmox
.Utils
.noneText
});
20 var baseurl
= '/config/mail';
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
);