]>
git.proxmox.com Git - pmg-gui.git/blob - js/MailProxyPorts.js
1 Ext
.define('PMG.MailProxyPorts', {
2 extend
: 'Proxmox.grid.ObjectGrid',
3 alias
: ['widget.pmgMailProxyPorts'],
5 url
: '/api2/json/config/mail',
10 url
: '/api2/extjs/config/mail',
19 xclass
: 'Ext.app.ViewController',
22 this.getView().run_editor();
27 itemdblclick
: 'onEdit',
32 text
: gettext('Edit'),
33 xtype
: 'proxmoxButton',
39 initComponent : function() {
42 me
.add_integer_row('ext_port', gettext('External SMTP Port'),
43 { defaultValue
: 26, deleteEmpty
: true,
44 minValue
: 1, maxValue
: 65535 });
46 me
.add_integer_row('int_port', gettext('Internal SMTP Port'),
47 { defaultValue
: 25, deleteEmpty
: true,
48 minValue
: 1, maxValue
: 65535 });
52 me
.on('activate', me
.rstore
.startUpdate
);
53 me
.on('destroy', me
.rstore
.stopUpdate
);
54 me
.on('deactivate', me
.rstore
.stopUpdate
);