]> git.proxmox.com Git - pmg-gui.git/blobdiff - js/FetchmailEdit.js
spam info grid: code cleanups
[pmg-gui.git] / js / FetchmailEdit.js
index f019d14ea8928191759c663888572db9259ecfcc..512421fb656d435b9d601742277937c804af3de4 100644 (file)
@@ -1,6 +1,7 @@
 Ext.define('PMG.FetchmailEdit', {
     extend: 'Proxmox.window.Edit',
     xtype: 'pmgFetchmailEdit',
+    onlineHelp: 'pmgconfig_fetchmail',
 
     userid: undefined,
 
@@ -18,13 +19,13 @@ Ext.define('PMG.FetchmailEdit', {
            var protocol = this.lookupReference('protocol').getValue();
            var ssl = this.lookupReference('ssl').getValue();
 
-           var port_field =  this.lookupReference('port');
+           var port_field = this.lookupReference('port');
            if (protocol === 'pop3') {
                port_field.setValue(ssl ? 995 : 110);
            } else if (protocol === 'imap') {
                port_field.setValue(ssl ? 993 : 143);
            }
-       }
+       },
     },
 
     items: {
@@ -34,7 +35,7 @@ Ext.define('PMG.FetchmailEdit', {
                xtype: 'textfield',
                name: 'server',
                fieldLabel: gettext('Server'),
-               allowBlank: false
+               allowBlank: false,
            },
            {
                xtype: 'proxmoxKVComboBox',
@@ -43,7 +44,7 @@ Ext.define('PMG.FetchmailEdit', {
                reference: 'protocol',
                value: 'pop3',
                listeners: { change: 'onProtocolChange' },
-               comboItems: [['pop3', 'pop3'], ['imap', 'imap']]
+               comboItems: [['pop3', 'pop3'], ['imap', 'imap']],
            },
            {
                xtype: 'proxmoxintegerfield',
@@ -53,27 +54,27 @@ Ext.define('PMG.FetchmailEdit', {
                value: 110,
                minValue: 1,
                maxValue: 65535,
-               allowBlank: false
+               allowBlank: false,
            },
            {
                xtype: 'textfield',
                name: 'user',
                fieldLabel: gettext('Username'),
-               allowBlank: false
+               allowBlank: false,
            },
            {
                xtype: 'textfield',
                name: 'pass',
                inputType: 'password',
-               fieldLabel: gettext('Passsword'),
-               allowBlank: false
+               fieldLabel: gettext('Password'),
+               allowBlank: false,
            },
            {
                xtype: 'textfield',
                name: 'target',
                fieldLabel: gettext('Deliver to'),
-               allowBlank: false
-           }
+               allowBlank: false,
+           },
 
        ],
        column2: [
@@ -82,7 +83,7 @@ Ext.define('PMG.FetchmailEdit', {
                fieldLabel: gettext('Enabled'),
                name: 'enable',
                uncheckedValue: 0,
-               checked: true
+               checked: true,
            },
            {
                xtype: 'proxmoxintegerfield',
@@ -91,7 +92,7 @@ Ext.define('PMG.FetchmailEdit', {
                value: 1,
                minValue: 1,
                maxValue: 24*12*7,
-               allowBlank: false
+               allowBlank: false,
            },
            {
                xtype: 'proxmoxcheckbox',
@@ -100,15 +101,15 @@ Ext.define('PMG.FetchmailEdit', {
                name: 'ssl',
                reference: 'ssl',
                uncheckedValue: 0,
-               checked: false
+               checked: false,
            },
            {
                xtype: 'proxmoxcheckbox',
                fieldLabel: gettext('Keep old mails'),
                name: 'keep',
                uncheckedValue: 0,
-               checked: false
-           }
-       ]
-    }
+               checked: false,
+           },
+       ],
+    },
 });