From 131ba4f60a2e23d5ee5537db3e15714560eaa19b Mon Sep 17 00:00:00 2001 From: Dominik Csapak Date: Mon, 23 Oct 2017 15:01:11 +0200 Subject: [PATCH] jslint: add missing semicolons Signed-off-by: Dominik Csapak --- js/ClamAVDatabase.js | 4 ++-- js/Dashboard.js | 4 ++-- js/DomainStatistics.js | 2 +- js/FetchmailView.js | 2 +- js/MailProxyOptions.js | 2 +- js/MailProxyRelaying.js | 2 +- js/MailProxyTLS.js | 2 +- js/RuleConfiguration.js | 2 +- js/SpamDetectorOptions.js | 2 +- js/SpamQuarantineOptions.js | 2 +- js/SystemOptions.js | 3 +-- js/UserBlackWhiteList.js | 2 +- js/UserEdit.js | 2 +- js/UserView.js | 6 +++--- js/VirusDetectorOptions.js | 2 +- js/VirusQuarantineOptions.js | 2 +- js/dashboard/MailProcessing.js | 2 +- js/dashboard/SubscriptionInfo.js | 2 +- 18 files changed, 22 insertions(+), 23 deletions(-) diff --git a/js/ClamAVDatabase.js b/js/ClamAVDatabase.js index b6a3f30..005a593 100644 --- a/js/ClamAVDatabase.js +++ b/js/ClamAVDatabase.js @@ -152,7 +152,7 @@ Ext.define('PMG.ClamAVDatabase', { upid: upid }); win.show(); - me.mon(win, 'close', function() { statusPanel.reload() }); + me.mon(win, 'close', function() { statusPanel.reload(); }); } }); }; @@ -162,7 +162,7 @@ Ext.define('PMG.ClamAVDatabase', { text: gettext('Edit'), xtype: 'proxmoxButton', disabled: true, - handler: function() { editPanel.run_editor() }, + handler: function() { editPanel.run_editor(); }, selModel: selModel }, { diff --git a/js/Dashboard.js b/js/Dashboard.js index 7dcc831..c395d14 100644 --- a/js/Dashboard.js +++ b/js/Dashboard.js @@ -142,10 +142,10 @@ Ext.define('PMG.Dashboard', { var cpuPanel = me.lookup('cpu'); cpuPanel.updateValue(cpu); - var memPanel = me.lookup('mem') + var memPanel = me.lookup('mem'); memPanel.updateValue(mem); - var hdPanel = me.lookup('hd') + var hdPanel = me.lookup('hd'); hdPanel.updateValue(hd); }, diff --git a/js/DomainStatistics.js b/js/DomainStatistics.js index 72784d4..c105f79 100644 --- a/js/DomainStatistics.js +++ b/js/DomainStatistics.js @@ -48,7 +48,7 @@ Ext.define('PMG.DomainStatistics', { store_in.setData(records); store_out.setData(records); } - }) + }); var render_domain = function(v) { return v === '' ? '--- EMPTY ADDRESS ---' : Ext.htmlEncode(v); diff --git a/js/FetchmailView.js b/js/FetchmailView.js index 4e72604..08df001 100644 --- a/js/FetchmailView.js +++ b/js/FetchmailView.js @@ -41,7 +41,7 @@ Ext.define('PMG.FetchmailView', { url: view.baseurl, method: 'POST' }); - win.on('destroy', function() { view.store.load() }); + win.on('destroy', function() { view.store.load(); }); win.show(); }, diff --git a/js/MailProxyOptions.js b/js/MailProxyOptions.js index 7312b5f..b4294bf 100644 --- a/js/MailProxyOptions.js +++ b/js/MailProxyOptions.js @@ -75,7 +75,7 @@ Ext.define('PMG.MailProxyOptions', { text: gettext('Edit'), xtype: 'proxmoxButton', disabled: true, - handler: function() { me.run_editor() }, + handler: function() { me.run_editor(); }, selModel: me.selModel }], url: '/api2/json' + baseurl, diff --git a/js/MailProxyRelaying.js b/js/MailProxyRelaying.js index e11ea3a..1fca392 100644 --- a/js/MailProxyRelaying.js +++ b/js/MailProxyRelaying.js @@ -29,7 +29,7 @@ Ext.define('PMG.MailProxyRelaying', { text: gettext('Edit'), xtype: 'proxmoxButton', disabled: true, - handler: function() { me.run_editor() }, + handler: function() { me.run_editor(); }, selModel: me.selModel }], url: '/api2/json' + baseurl, diff --git a/js/MailProxyTLS.js b/js/MailProxyTLS.js index a2b1e86..f45115b 100644 --- a/js/MailProxyTLS.js +++ b/js/MailProxyTLS.js @@ -22,7 +22,7 @@ Ext.define('PMG.MailProxyTLS', { text: gettext('Edit'), xtype: 'proxmoxButton', disabled: true, - handler: function() { me.run_editor() }, + handler: function() { me.run_editor(); }, selModel: me.selModel }], url: '/api2/json' + baseurl, diff --git a/js/RuleConfiguration.js b/js/RuleConfiguration.js index a28fa87..86c5f02 100644 --- a/js/RuleConfiguration.js +++ b/js/RuleConfiguration.js @@ -148,7 +148,7 @@ Ext.define('PMG.RulesConfiguration', { iconCls: 'fa fa-minus-circle', reference: 'removeButton', callback: 'reload', - getRecordName: function(rec) { return rec.data.name }, + getRecordName: function(rec) { return rec.data.name; }, bind: { baseurl: '{baseUrl}' } diff --git a/js/SpamDetectorOptions.js b/js/SpamDetectorOptions.js index 2c2ecf4..60aeb3f 100644 --- a/js/SpamDetectorOptions.js +++ b/js/SpamDetectorOptions.js @@ -46,7 +46,7 @@ Ext.define('PMG.SpamDetectorOptions', { text: gettext('Edit'), xtype: 'proxmoxButton', disabled: true, - handler: function() { me.run_editor() }, + handler: function() { me.run_editor(); }, selModel: me.selModel }], url: '/api2/json' + baseurl, diff --git a/js/SpamQuarantineOptions.js b/js/SpamQuarantineOptions.js index ca4c7b9..0a3cff7 100644 --- a/js/SpamQuarantineOptions.js +++ b/js/SpamQuarantineOptions.js @@ -77,7 +77,7 @@ Ext.define('PMG.SpamQuarantineOptions', { text: gettext('Edit'), xtype: 'proxmoxButton', disabled: true, - handler: function() { me.run_editor() }, + handler: function() { me.run_editor(); }, selModel: me.selModel }], url: '/api2/json' + baseurl, diff --git a/js/SystemOptions.js b/js/SystemOptions.js index 4be49bd..089b598 100644 --- a/js/SystemOptions.js +++ b/js/SystemOptions.js @@ -81,5 +81,4 @@ Ext.define('PMG.SystemOptions', { me.on('activate', me.rstore.startUpdate); me.on('destroy', me.rstore.stopUpdate); } -}) - +}); diff --git a/js/UserBlackWhiteList.js b/js/UserBlackWhiteList.js index 2f20b92..7255b6b 100644 --- a/js/UserBlackWhiteList.js +++ b/js/UserBlackWhiteList.js @@ -58,7 +58,7 @@ Ext.define('PMG.UserBlackWhiteList', { } var win = Ext.createWidget('proxmoxWindowEdit', config); - win.on('destroy', function() { me.store.load() }); + win.on('destroy', function() { me.store.load(); }); win.show(); }, diff --git a/js/UserEdit.js b/js/UserEdit.js index bf66dcf..94271fa 100644 --- a/js/UserEdit.js +++ b/js/UserEdit.js @@ -28,7 +28,7 @@ Ext.define('PMG.UserEdit', { return { useridXType: userid ? 'displayfield' : 'textfield', isSuperUser: userid === 'root@pam' - } + }; }, items: { diff --git a/js/UserView.js b/js/UserView.js index 0a7fd70..0b5728c 100644 --- a/js/UserView.js +++ b/js/UserView.js @@ -57,7 +57,7 @@ Ext.define('PMG.UserView', { var view = this.getView(); var win = Ext.create('PMG.UserEdit', {}); - win.on('destroy', function() { view.reload() }); + win.on('destroy', function() { view.reload(); }); win.show(); }, @@ -69,7 +69,7 @@ Ext.define('PMG.UserView', { var win = Ext.create('PMG.UserEdit', { userid: rec.data.userid }); - win.on('destroy', function() { view.reload() }); + win.on('destroy', function() { view.reload(); }); win.show(); }, @@ -79,7 +79,7 @@ Ext.define('PMG.UserView', { var win = Ext.create('Proxmox.window.PasswordEdit',{ userid: rec.data.userid }); - win.on('destroy', function() { view.reload() }); + win.on('destroy', function() { view.reload(); }); win.show(); }, diff --git a/js/VirusDetectorOptions.js b/js/VirusDetectorOptions.js index 30fba4c..3d34bac 100644 --- a/js/VirusDetectorOptions.js +++ b/js/VirusDetectorOptions.js @@ -39,7 +39,7 @@ Ext.define('PMG.VirusDetectorOptions', { text: gettext('Edit'), xtype: 'proxmoxButton', disabled: true, - handler: function() { me.run_editor() }, + handler: function() { me.run_editor(); }, selModel: me.selModel }], url: '/api2/json' + baseurl, diff --git a/js/VirusQuarantineOptions.js b/js/VirusQuarantineOptions.js index 87485df..839a62e 100644 --- a/js/VirusQuarantineOptions.js +++ b/js/VirusQuarantineOptions.js @@ -26,7 +26,7 @@ Ext.define('PMG.VirusQuarantineOptions', { text: gettext('Edit'), xtype: 'proxmoxButton', disabled: true, - handler: function() { me.run_editor() }, + handler: function() { me.run_editor(); }, selModel: me.selModel }], url: '/api2/json' + baseurl, diff --git a/js/dashboard/MailProcessing.js b/js/dashboard/MailProcessing.js index 42e2e2a..a460176 100644 --- a/js/dashboard/MailProcessing.js +++ b/js/dashboard/MailProcessing.js @@ -51,4 +51,4 @@ Ext.define('PMG.dashboard.MailProcessing', { ] } ] -}) +}); diff --git a/js/dashboard/SubscriptionInfo.js b/js/dashboard/SubscriptionInfo.js index 220cef2..1b224ff 100644 --- a/js/dashboard/SubscriptionInfo.js +++ b/js/dashboard/SubscriptionInfo.js @@ -50,4 +50,4 @@ Ext.define('PMG.dashboard.SubscriptionInfo', { } } } -}) +});