]> git.proxmox.com Git - pmg-gui.git/commitdiff
drop jslint hints
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 23 Oct 2020 12:07:00 +0000 (14:07 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 23 Oct 2020 12:08:50 +0000 (14:08 +0200)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
23 files changed:
js/AttachmentQuarantine.js
js/ClamAVDatabase.js
js/ClusterAdministration.js
js/ConfigPanel.js
js/ContactStatistics.js
js/Dashboard.js
js/FetchmailEdit.js
js/FilterProxy.js
js/LDAPConfig.js
js/MailProxyOptions.js
js/MyNetworks.js
js/ReceiverStatistics.js
js/RelayDomains.js
js/RuleConfiguration.js
js/RuleInfo.js
js/SenderStatistics.js
js/SpamDetectorLanguages.js
js/SpamQuarantine.js
js/SpamQuarantineOptions.js
js/UserEdit.js
js/UserView.js
js/Utils.js
js/VirusQuarantine.js

index f199ed1fcd2670f72cd735b21f1d859babe53572..188dae508c536ae5099f6d527b8915cad85c610e 100644 (file)
@@ -1,5 +1,3 @@
-/*jslint confusion: true*/
-/*format is a string and a function*/
 Ext.define('pmg-attachment-list', {
     extend: 'Ext.data.Model',
     fields: ['id', 'envelope_sender', 'from', 'sender', 'receiver', 'subject',
index d498fda1da69be3f41e70d72d442d81beb7129ba..36da444147a9a2b10d1076c40fed87ffde4a5778 100644 (file)
@@ -10,13 +10,10 @@ Ext.define('PMG.ClamAVDatabaseConfig', {
        me.add_text_row('dbmirror', gettext('Database Mirror'),
                        { deleteEmpty: true, defaultValue: 'database.clamav.net' });
 
-       /*jslint confusion: true*/
-       /*defaultValue is a string above*/
        me.add_boolean_row('safebrowsing', gettext('Google Safe Browsing'),
                           { defaultValue: 1 });
        me.add_boolean_row('scriptedupdates', gettext('Incremental Download'),
                           { defaultValue: 0 });
-       /*jslint confusion: false*/
 
        var baseurl = '/config/clamav';
 
@@ -112,10 +109,7 @@ Ext.define('PMG.ClamAVDatabaseStatus', {
 
        me.callParent();
 
-       /*jslint confusion: true*/
-       /*monStoreErrors is a bool above*/
        Proxmox.Utils.monStoreErrors(me.getView(), me.store, true);
-       /*jslint confusion: false*/
     },
 });
 
index deea786194b350d3753411857a7a6411f243e075..e22a083013b753941c001b5c188921a22e50b9fe 100644 (file)
@@ -105,8 +105,6 @@ Ext.define('PMG.ClusterAddNodeWindow', {
     ],
 });
 
-/*jslint confusion: true*/
-/* bind is a function and object */
 Ext.define('PMG.ClusterAdministration', {
     extend: 'Ext.tab.Panel',
     xtype: 'pmgClusterAdministration',
index d18ee6b6c3e232adf9e581d6140f13593b63a0d6..27b767cdeabc8eaa265e7bd8cae62d149b099bb8 100644 (file)
@@ -177,11 +177,9 @@ Ext.define('PMG.panel.Config', {
        me.items = me.items || [];
 
        me.savedItems = {};
-       /*jslint confusion:true*/
        if (me.items[0]) {
            me.firstItem = me.items[0].itemId;
        }
-       /*jslint confusion:false*/
 
        me.store = Ext.create('Ext.data.TreeStore', {
            root: {
index 2e2d9b771ffd433d68dd3329e2bc01e69fea8f3b..6c9d2d4e61cc862fc62024bc1368580236be444c 100644 (file)
@@ -1,5 +1,3 @@
-/*jslint confusion: true*/
-/* filter is a function and object */
 Ext.define('PMG.ContactDetails', {
     extend: 'Ext.grid.GridPanel',
     xtype: 'pmgContactDetails',
index b24a0c98757a2cccc51fe5edc8a0710191b4a048..c92b2f0d8f190f8e031b2c12a401c0432bd58866 100644 (file)
@@ -1,10 +1,3 @@
-/*jslint confusion: true*/
-/* load is a function and string
- * hours is a number and string
- * timespan is a number and string
- * bind is a function and object
- * handler is a function and string
- */
 Ext.define('PMG.Dashboard', {
     extend: 'Ext.panel.Panel',
     xtype: 'pmgDashboard',
index 0d517c0cf2b9aad19a0042ce576b44fb5536c44e..512421fb656d435b9d601742277937c804af3de4 100644 (file)
@@ -1,5 +1,3 @@
-/*jslint confusion: true*/
-/*value is string and number*/
 Ext.define('PMG.FetchmailEdit', {
     extend: 'Proxmox.window.Edit',
     xtype: 'pmgFetchmailEdit',
index 7b4a0cf4dd2bc1867cb1612b0ea400abb6f24c84..de4cd0633045d376987790118584b33ec3ac5095 100644 (file)
@@ -17,9 +17,7 @@ Ext.define('PMG.FilterProxy', {
            if (filter.config.id === me.filterId) {
                var v = filter.getValue();
                if (v !== undefined && v !== '') {
-                   /*jslint confusion: true */
                    params.filter = v;
-                   /*jslint confusion: false */
                }
            }
        }
index 9fce9573c29fb3548e2faa93961dc79acb963c0b..0a4937eabfbfcdefa87c655a779a1e8161cbbf1c 100644 (file)
@@ -1,10 +1,3 @@
-/*jslint confusion: true*/
-/* reload is function and string,
- * height is number and string,
- * hidden is bool and string,
- * bind is function and object,
- * callback is function and string
- */
 Ext.define('pmg-ldap-config', {
     extend: 'Ext.data.Model',
     fields: ['profile', 'server1', 'server2', 'comment',
index 46e51b1b73e33735d9dd60c30c892f1719149a55..b151350323c49a13226d5bf916560884974c8334 100644 (file)
@@ -32,8 +32,6 @@ Ext.define('PMG.MailProxyOptions', {
            return Proxmox.Utils.yesText + ' (' + value + ')';
        };
 
-       /*jslint confusion: true*/
-       /*defaultValue is string and number*/
        me.add_combobox_row('verifyreceivers', gettext('Verify Receivers'), {
            renderer: render_verifyreceivers,
            defaultValue: '__default__',
@@ -43,7 +41,6 @@ Ext.define('PMG.MailProxyOptions', {
                ['450', render_verifyreceivers('450')],
                ['550', render_verifyreceivers('550')]],
        });
-       /*jslint confusion: false*/
 
        me.add_boolean_row('greylist', gettext('Use Greylisting for IPv4'),
                           { defaultValue: 1 });
@@ -73,11 +70,8 @@ Ext.define('PMG.MailProxyOptions', {
        me.add_integer_row('message_rate_limit', gettext('Client Message Rate Limit'),
                           { defaultValue: 0, minValue: 0 });
 
-       /*jslint confusion: true*/
-       /*defaultValue is string and number*/
        me.add_text_row('banner', gettext('SMTPD Banner'),
                        { deleteEmpty: true, defaultValue: 'ESMTP Proxmox' });
-       /*jslint confusion: false*/
 
        me.add_boolean_row('ndr_on_block', gettext('Send NDR on Blocked E-Mails'));
        // FIXME allow to pass onlineHelp to ObjectGrid's add_xyz_row..
index 16517c150ceaa0673c83b9583928537c5e5f7ce8..6c52f1a5aed9650581f5ed3e3f620bf57dd0815f 100644 (file)
@@ -79,7 +79,6 @@ Ext.define('PMG.MyNetworks', {
             {
                text: gettext('Create'),
                handler: function() {
-                   /*jslint confusion: true*/
                    var config = {
                        method: 'POST',
                        url: "/api2/extjs/config/mynetworks",
@@ -99,7 +98,6 @@ Ext.define('PMG.MyNetworks', {
                            },
                        ],
                    };
-                   /*jslint confusion: false*/
 
                    var win = Ext.createWidget('proxmoxWindowEdit', config);
 
index bcc46b889261fce222e45f4a487f2263623c48c1..6378e06150a06ef96877bf7fc2c58333b6abe45e 100644 (file)
@@ -1,5 +1,3 @@
-/*jslint confusion: true*/
-/* filter is a function and object */
 Ext.define('PMG.ReceiverDetails', {
     extend: 'Ext.grid.GridPanel',
     xtype: 'pmgReceiverDetails',
index a0f698b149aa4f976515638c40e5be3eef6dc3a1..0098e206646349b31bac67182138bf0f74467afb 100644 (file)
@@ -84,7 +84,6 @@ Ext.define('PMG.RelayDomains', {
             {
                text: gettext('Create'),
                handler: function() {
-                   /*jslint confusion: true*/
                    var config = {
                        method: 'POST',
                        url: '/api2/extjs' + me.baseurl,
@@ -104,7 +103,6 @@ Ext.define('PMG.RelayDomains', {
                            },
                        ],
                    };
-                   /*jslint confusion: false*/
 
                    var win = Ext.createWidget('proxmoxWindowEdit', config);
 
index 261106c9917dc737e04dca8037ca57a1bfb032f1..93094c269bbf73b1cadd488e6598b1aedb07e1ee 100644 (file)
@@ -1,7 +1,3 @@
-/*jslint confusion: true*/
-/* bind is a function and object,
- * callback is a function and string
- */
 Ext.define('pmg-rule-list', {
     extend: 'Ext.data.Model',
     fields: [
index 68eff02e4ced63c00a4bc8a7eb81c00b9c26fcd5..b7802fa261cc0075ad917bda70037b402b58b0b6 100644 (file)
@@ -1,5 +1,3 @@
-/*jslint confusion: true*/
-/* bind is a function function */
 Ext.define('PMG.RuleInfo', {
     extend: 'Ext.panel.Panel',
     xtype: 'pmgRuleInfo',
index b6ed5dd885a0aff7294d0e7e260623d8aed6d04b..43c5438bee4fad0b807ef10c51be5825de0f1c76 100644 (file)
@@ -1,5 +1,3 @@
-/*jslint confusion: true*/
-/* filter is a function and object */
 Ext.define('PMG.SenderDetails', {
     extend: 'Ext.grid.GridPanel',
     xtype: 'pmgSenderDetails',
index e748922b8d7e3fe9dbd4a257c2596aec8e62f65f..970ac61228b197405e5599b003adab90c8bbfce3 100644 (file)
@@ -73,10 +73,7 @@ Ext.define('PMG.SpamDetectorLanguagesInputPanel', {
        if (!values.languages) {
            values.delete = 'languages';
        } else if (Ext.isArray(values.languages)) {
-           /*jslint confusion: true*/
-           /*languages is an array and string here*/
            values.languages = values.languages.join(' ');
-           /*jslint confusion: false*/
        }
 
        return values;
index f3f60537e700f77b785fc90505e0efb065732b64..f5875bc3158df028a683d5094f7d391b7312d64f 100644 (file)
@@ -1,5 +1,3 @@
-/*jslint confusion: true*/
-/*format is a string and a function*/
 Ext.define('pmg-spam-archive', {
     extend: 'Ext.data.Model',
     fields: [
index 6dce1603f71289abd25c52faf524aa2589deefe9..353fe7e6219214828507b04f94470a9955ee8ede 100644 (file)
@@ -30,8 +30,6 @@ Ext.define('PMG.SpamQuarantineOptions', {
            return me.authmodeTextHash[value] || value;
        };
 
-       /*jslint confusion: true*/
-       /* defaultValue is a string and a number*/
        me.add_combobox_row('authmode', gettext('Authentication mode'), {
            defaultValue: 'ticket',
            renderer: render_authmode,
@@ -54,7 +52,6 @@ Ext.define('PMG.SpamQuarantineOptions', {
                ['verbose', render_reportstyle('verbose')],
                ['custom', render_reportstyle('custom')]],
        });
-       /*jslint confusion: false*/
 
        me.add_text_row('hostname', gettext('Quarantine Host'),
                        { deleteEmpty: true, defaultValue: Proxmox.Utils.noneText });
index 7918d80f312c1c926d23ac46ac24b4d5e0a1b5ed..e2125305fa92b382fee6beb757938b2327837c69 100644 (file)
@@ -1,5 +1,3 @@
-/*jslint confusion: true*/
-/* submitvalue is string and bool */
 Ext.define('PMG.UserEdit', {
     extend: 'Proxmox.window.Edit',
     alias: 'widget.pmgUserEdit',
index 647544c2351c9f1daeeb3855f4c787f5cfd90675..f81bd402c3aa023afeb4c02c260fc5698c4cb63e 100644 (file)
@@ -1,5 +1,3 @@
-/*jslint confusion: true*/
-/*renderer is string and function*/
 Ext.define('pmg-users', {
     extend: 'Ext.data.Model',
     fields: [
index e730a3e95e53a76da947317df254b426e2920081..abd910dbe545819f73cf44e749b71d7fb0589e13 100644 (file)
@@ -809,11 +809,8 @@ Ext.define('PMG.Utils', {
        var from = Ext.htmlEncode(rec.data.from);
        var sender = Ext.htmlEncode(rec.data.sender);
        if (sender) {
-           /*jslint confusion: true*/
-           /*format is a string above*/
            from = Ext.String.format(gettext("{0} on behalf of {1}"),
                                     sender, from);
-           /*jslint confusion: false*/
        }
        return '<small>' + from + '</small><br>' + subject;
     },
index 29ec7047b8acb82007822a85541f529c52669dfe..105a43872e6e944b725999425f608432dd69f80f 100644 (file)
@@ -1,5 +1,3 @@
-/*jslint confusion: true*/
-/*format is a string and a function*/
 Ext.define('pmg-virus-list', {
     extend: 'Ext.data.Model',
     fields: ['id', 'envelope_sender', 'from', 'sender', 'receiver', 'subject',