From cc6b80b6c860858f20f95c7858a46bb1b21ce734 Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Mon, 18 Sep 2017 11:39:58 +0200 Subject: [PATCH] fix some jslint errors --- js/Utils.js | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/js/Utils.js b/js/Utils.js index af20b53..200a50e 100644 --- a/js/Utils.js +++ b/js/Utils.js @@ -27,7 +27,7 @@ Ext.define('PMG.Utils', { when: ' ', action: ' ', from: ' ', - to: ' ', + to: ' ' }, format_oclass: function(oclass) { @@ -63,9 +63,9 @@ Ext.define('PMG.Utils', { }, format_ldap_protocol: function(p) { - if (p === undefined) return 'LDAP'; - if (p === 'ldap') return 'LDAP'; - if (p === 'ldaps') return 'LDAPS'; + if (p === undefined) { return 'LDAP'; } + if (p === 'ldap') { return 'LDAP'; } + if (p === 'ldaps') { return 'LDAPS'; } return 'unknown'; }, @@ -219,7 +219,7 @@ Ext.define('PMG.Utils', { allowBlank: false, minValue: 0, fieldLabel: gettext('Level') - }, + } ] }, 3002: { @@ -247,7 +247,7 @@ Ext.define('PMG.Utils', { labelWidth: 150, fieldLabel: gettext('Test String'), xtype: 'pmgRegexTester', - regexFieldReference: 'value', + regexFieldReference: 'value' } ] }, @@ -270,7 +270,7 @@ Ext.define('PMG.Utils', { proxy: { type: 'proxmox', url: '/api2/json/config/mimetypes' - }, + } }, fieldLabel: gettext('Content Type'), anyMatch: true, @@ -288,7 +288,7 @@ Ext.define('PMG.Utils', { labelWidth: 150, allowBlank: false, reset: Ext.emptyFn - }, + } ] }, 3004: { @@ -333,7 +333,7 @@ Ext.define('PMG.Utils', { proxy: { type: 'proxmox', url: '/api2/json/config/mimetypes' - }, + } }, fieldLabel: gettext('Content Type'), anyMatch: true, @@ -409,7 +409,7 @@ Ext.define('PMG.Utils', { extractQuarantineAction: function() { - if (PMG.Utils.quarantineActionExtracted) return; + if (PMG.Utils.quarantineActionExtracted) { return; } PMG.Utils.quarantineActionExtracted = true; @@ -426,7 +426,7 @@ Ext.define('PMG.Utils', { var newsearch = Ext.Object.toQueryString(qs); var newurl = location.protocol + "//" + location.host + location.pathname; - if (newsearch) newurl += '?' + newsearch; + if (newsearch) { newurl += '?' + newsearch; } newurl += location.hash; if (window.history) {