]>
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() {
10 defaultValue
: Proxmox
.Utils
.noneText
,
11 header
: gettext('Default Relay'),
13 xtype
: 'proxmoxWindowEdit',
14 subject
: gettext('Default Relay'),
16 xtype
: 'proxmoxtextfield',
19 fieldLabel
: gettext('Default Relay')
24 me
.add_integer_row('relayport', gettext('SMTP Port'),
25 { defaultValue
: 25, deleteEmpty
: true,
26 minValue
: 1, maxValue
: 65535 });
28 me
.add_boolean_row('relaynomx', ettext('Disable MX lookup'));
32 defaultValue
: Proxmox
.Utils
.noneText
,
33 header
: gettext('Smarthost'),
35 xtype
: 'proxmoxWindowEdit',
36 subject
: gettext('Smarthost'),
38 xtype
: 'proxmoxtextfield',
41 fieldLabel
: gettext('Smarthost')
46 var baseurl
= '/config/mail';
49 url
: '/api2/json' + baseurl
,
51 url
: '/api2/extjs' + baseurl
,
56 itemdblclick
: me
.run_editor
62 me
.on('activate', me
.rstore
.startUpdate
);
63 me
.on('destroy', me
.rstore
.stopUpdate
);