From: Dominik Csapak Date: Mon, 23 Oct 2017 13:01:09 +0000 (+0200) Subject: jslint: remove trailing commas X-Git-Url: https://git.proxmox.com/?p=pmg-gui.git;a=commitdiff_plain;h=771bd0b94b0ccbcfe20c8fa1f7fd1e18a1b1cd83 jslint: remove trailing commas Signed-off-by: Dominik Csapak --- diff --git a/js/Application.js b/js/Application.js index ae8c9d5..38c80e8 100644 --- a/js/Application.js +++ b/js/Application.js @@ -31,7 +31,7 @@ Ext.define('PMG.Application', { me.currentView.destroy(); me.currentView = Ext.create({ xtype: view, - targetview: me.targetview, + targetview: me.targetview }); if (skipCheck !== true) { Proxmox.Utils.checked_command(function() {}); // display subscription status diff --git a/js/ClamAVDatabase.js b/js/ClamAVDatabase.js index 529b314..80a8582 100644 --- a/js/ClamAVDatabase.js +++ b/js/ClamAVDatabase.js @@ -19,7 +19,7 @@ Ext.define('PMG.ClamAVDatabaseConfig', { Ext.apply(me, { url: '/api2/json' + baseurl, editorConfig: { - url: '/api2/extjs' + baseurl, + url: '/api2/extjs' + baseurl }, interval: 5000, cwidth1: 200, @@ -98,7 +98,7 @@ Ext.define('PMG.ClamAVDatabaseStatus', { flex: 1, sortable: true, dataIndex: 'nsigs' - }, + } ], listeners: { activate: me.reload diff --git a/js/ContactStatistics.js b/js/ContactStatistics.js index e255cd2..f50b42f 100644 --- a/js/ContactStatistics.js +++ b/js/ContactStatistics.js @@ -82,7 +82,7 @@ Ext.define('PMG.ContactDetails', { header: gettext('Time'), format: 'H:i:s', dataIndex: 'time' - }, + } ], initComponent: function() { @@ -119,7 +119,7 @@ Ext.define('PMG.ContactList', { 'contact', { type: 'integer', name: 'count' }, { type: 'integer', name: 'viruscount' }, - { type: 'integer', name: 'bytes' }, + { type: 'integer', name: 'bytes' } ], proxy: { type: 'pmgfilterproxy', @@ -192,7 +192,7 @@ Ext.define('PMG.ContactStatistics', { layout: 'border', border: false, defaults: { - border: false, + border: false }, controller: { @@ -219,7 +219,7 @@ Ext.define('PMG.ContactStatistics', { layout: 'fit', flex: 1, - listeners: { selectionchange: 'selectionChange' }, + listeners: { selectionchange: 'selectionChange' } }, { xtype: 'pmgContactDetails', diff --git a/js/Dashboard.js b/js/Dashboard.js index eed3173..4fc35fd 100644 --- a/js/Dashboard.js +++ b/js/Dashboard.js @@ -42,7 +42,7 @@ Ext.define('PMG.Dashboard', { win.close(); } }] - }], + }] }).show(); }, @@ -156,7 +156,7 @@ Ext.define('PMG.Dashboard', { hours: 12, // in hours 'bytes_in': 0, 'bytes_out': 0, - 'avg_ptime': 0.0, + 'avg_ptime': 0.0 }, stores: { @@ -244,7 +244,7 @@ Ext.define('PMG.Dashboard', { type: 'proxmox', url: '/api2/json/statistics/recentreceivers', extraParams: { - hours: '{hours}', + hours: '{hours}' } }, fields: [ @@ -288,7 +288,7 @@ Ext.define('PMG.Dashboard', { title: gettext('E-Mail Volume'), layout: { type: 'vbox', - align: 'stretch', + align: 'stretch' }, defaults: { xtype: 'pmgMiniGraph', @@ -309,8 +309,8 @@ Ext.define('PMG.Dashboard', { highlightCfg: { opacity: 1, scaling: 1 - }, - }, + } + } }, { fields: ['spam'], @@ -324,9 +324,9 @@ Ext.define('PMG.Dashboard', { highlightCfg: { opacity: 1, scaling: 1 - }, - }, - }, + } + } + } ] }, { @@ -334,7 +334,7 @@ Ext.define('PMG.Dashboard', { height: 300, layout: { type: 'vbox', - align: 'stretch', + align: 'stretch' }, items: [ { @@ -348,7 +348,7 @@ Ext.define('PMG.Dashboard', { 'out': '{bytes_out}', 'ptime': '{avg_ptime}' } - }, + } }, { iconCls: 'fa fa-ticket', @@ -356,7 +356,7 @@ Ext.define('PMG.Dashboard', { reference: 'subscription', xtype: 'pmgSubscriptionInfo', margin: '10 0 0 0', - height: 110, + height: 110 } ] }, @@ -416,7 +416,7 @@ Ext.define('PMG.Dashboard', { columnLines: false, rowLines: false, viewConfig: { - stripeRows: false, + stripeRows: false }, columns: [ diff --git a/js/FetchmailEdit.js b/js/FetchmailEdit.js index 455552f..f019d14 100644 --- a/js/FetchmailEdit.js +++ b/js/FetchmailEdit.js @@ -73,7 +73,7 @@ Ext.define('PMG.FetchmailEdit', { name: 'target', fieldLabel: gettext('Deliver to'), allowBlank: false - }, + } ], column2: [ diff --git a/js/FetchmailView.js b/js/FetchmailView.js index e29ad06..4e72604 100644 --- a/js/FetchmailView.js +++ b/js/FetchmailView.js @@ -5,7 +5,7 @@ Ext.define('pmg-fetchmail-users', { 'id', 'protocol', 'port', 'server', 'user', 'pass', 'target', 'ssl', 'keep', { type: 'integer', name: 'interval' }, - { type: 'boolean', name: 'enable' }, + { type: 'boolean', name: 'enable' } ], proxy: { type: 'proxmox', @@ -39,7 +39,7 @@ Ext.define('PMG.FetchmailView', { var win = Ext.create('PMG.FetchmailEdit', { url: view.baseurl, - method: 'POST', + method: 'POST' }); win.on('destroy', function() { view.store.load() }); win.show(); @@ -84,12 +84,12 @@ Ext.define('PMG.FetchmailView', { reference: 'removeBtn', callback: 'onAfterRemove', waitMsgTarget: true - }, + } ], listeners: { //scope: 'controller', - itemdblclick: 'onEdit', + itemdblclick: 'onEdit' }, columns: [ diff --git a/js/HourlyMailDistribution.js b/js/HourlyMailDistribution.js index 6ec8530..bb96cc9 100644 --- a/js/HourlyMailDistribution.js +++ b/js/HourlyMailDistribution.js @@ -83,7 +83,7 @@ Ext.define('PMG.HourlyMailDistribution', { { type: 'integer', name: 'viruscount_in' }, { type: 'integer', name: 'viruscount_ou' }, { type: 'integer', name: 'bounces_in' }, - { type: 'integer', name: 'bounces_out' }, + { type: 'integer', name: 'bounces_out' } ] }); diff --git a/js/LDAPConfig.js b/js/LDAPConfig.js index a8b2210..27a9442 100644 --- a/js/LDAPConfig.js +++ b/js/LDAPConfig.js @@ -76,7 +76,7 @@ Ext.define('PMG.LDAPInputPanel', { deleteEmpty: me.create ? false : true, minValue: 1, maxValue: 65535, - fieldLabel: gettext('Port'), + fieldLabel: gettext('Port') }, { xtype: 'textfield', @@ -294,7 +294,7 @@ Ext.define('PMG.LDAPConfig', { }, columns: [ { dataIndex: 'email', text: gettext('E-Mail address'), flex: 1 } - ], + ] }] }).show(); }, @@ -373,7 +373,7 @@ Ext.define('PMG.LDAPConfig', { region: 'center', reference: 'grid', xtype: 'pmgLDAPConfigGrid', - border: false, + border: false }, { xtype: 'tabpanel', @@ -426,11 +426,11 @@ Ext.define('PMG.LDAPConfig', { }], bind: { title: Ext.String.format(gettext("Users of '{0}'"), '{name}') - }, + } } ] } - ], + ] }); @@ -450,7 +450,7 @@ Ext.define('PMG.LDAPConfigGrid', { } var win = Ext.createWidget('pmgLDAPEdit', { - profileId: rec.data.profile, + profileId: rec.data.profile }); win.on('destroy', me.reload, me); win.load(); @@ -516,7 +516,7 @@ Ext.define('PMG.LDAPConfigGrid', { { xtype: 'proxmoxStdRemoveButton', baseurl: '/config/ldap', - callback: 'reload', + callback: 'reload' }, { xtype: 'proxmoxButton', @@ -526,7 +526,7 @@ Ext.define('PMG.LDAPConfigGrid', { }, disabled: true, handler: 'sync' - }, + } ], listeners: { @@ -589,7 +589,7 @@ Ext.define('PMG.LDAPConfigGrid', { width: 80, sortable: true, dataIndex: 'gcount' - }, - ], + } + ] }); diff --git a/js/MailProxyOptions.js b/js/MailProxyOptions.js index 873bd85..c3ede9a 100644 --- a/js/MailProxyOptions.js +++ b/js/MailProxyOptions.js @@ -74,7 +74,7 @@ Ext.define('PMG.MailProxyOptions', { }], url: '/api2/json' + baseurl, editorConfig: { - url: '/api2/extjs' + baseurl, + url: '/api2/extjs' + baseurl }, interval: 5000, cwidth1: 200, diff --git a/js/MailProxyPorts.js b/js/MailProxyPorts.js index d1b638a..188d27e 100644 --- a/js/MailProxyPorts.js +++ b/js/MailProxyPorts.js @@ -7,7 +7,7 @@ Ext.define('PMG.MailProxyPorts', { monStoreErrors: true, editorConfig: { - url: '/api2/extjs/config/mail', + url: '/api2/extjs/config/mail' }, interval: 5000, @@ -24,7 +24,7 @@ Ext.define('PMG.MailProxyPorts', { }, listeners: { - itemdblclick: 'onEdit', + itemdblclick: 'onEdit' }, tbar: [ diff --git a/js/MailProxyRelaying.js b/js/MailProxyRelaying.js index f97372d..e11ea3a 100644 --- a/js/MailProxyRelaying.js +++ b/js/MailProxyRelaying.js @@ -34,7 +34,7 @@ Ext.define('PMG.MailProxyRelaying', { }], url: '/api2/json' + baseurl, editorConfig: { - url: '/api2/extjs' + baseurl, + url: '/api2/extjs' + baseurl }, interval: 5000, cwidth1: 200, diff --git a/js/MailProxyTLS.js b/js/MailProxyTLS.js index 3b2e025..a2b1e86 100644 --- a/js/MailProxyTLS.js +++ b/js/MailProxyTLS.js @@ -27,7 +27,7 @@ Ext.define('PMG.MailProxyTLS', { }], url: '/api2/json' + baseurl, editorConfig: { - url: '/api2/extjs' + baseurl, + url: '/api2/extjs' + baseurl }, interval: 5000, cwidth1: 200, diff --git a/js/MailStatGrid.js b/js/MailStatGrid.js index 4e90ae2..831541b 100644 --- a/js/MailStatGrid.js +++ b/js/MailStatGrid.js @@ -6,7 +6,7 @@ Ext.define('PMG.MailStatGrid', { hideHeaders: true, store: { - fields: [ 'name', 'value', 'percentage' ], + fields: [ 'name', 'value', 'percentage' ] }, columns: [ diff --git a/js/MailTracker.js b/js/MailTracker.js index 7f4042e..a992c6a 100644 --- a/js/MailTracker.js +++ b/js/MailTracker.js @@ -217,7 +217,7 @@ Ext.define('PMG.MailTracker', { plugins: [ { ptype: 'rowexpander', - rowBodyTpl: '

{logs}

', + rowBodyTpl: '

{logs}

' } ], diff --git a/js/NavigationTree.js b/js/NavigationTree.js index 3f0c849..b9550d5 100644 --- a/js/NavigationTree.js +++ b/js/NavigationTree.js @@ -22,25 +22,25 @@ Ext.define('PMG.store.NavigationStore', { text: gettext('Action Objects'), iconCls: 'fa fa-flag', path: 'pmgActionList', - leaf: true, + leaf: true }, { text: gettext('Who Objects'), iconCls: 'fa fa-user-circle', path: 'pmgWhoConfiguration', - leaf: true, + leaf: true }, { text: gettext('What Objects'), iconCls: 'fa fa-cube', path: 'pmgWhatConfiguration', - leaf: true, + leaf: true }, { text: gettext('When Objects'), iconCls: 'fa fa-clock-o', path: 'pmgWhenConfiguration', - leaf: true, + leaf: true } ] }, @@ -54,31 +54,31 @@ Ext.define('PMG.store.NavigationStore', { text: gettext('Mail Proxy'), iconCls: 'fa fa-envelope-o', path: 'pmgMailProxyConfiguration', - leaf: true, + leaf: true }, { text: gettext('Spam Detector'), iconCls: 'fa fa-bullhorn', path: 'pmgSpamDetectorConfiguration', - leaf: true, + leaf: true }, { text: gettext('Virus Detector'), iconCls: 'fa fa-bug', path: 'pmgVirusDetectorConfiguration', - leaf: true, + leaf: true }, { text: gettext('User Management'), iconCls: 'fa fa-users', path: 'pmgUserManagement', - leaf: true, + leaf: true }, { text: gettext('Cluster'), iconCls: 'fa fa-server', path: 'pmgClusterAdministration', - leaf: true, + leaf: true }, { text: gettext('Subscription'), @@ -98,37 +98,37 @@ Ext.define('PMG.store.NavigationStore', { text: gettext('Spam Quarantine'), iconCls: 'fa fa-bullhorn', path: 'pmgSpamQuarantine', - leaf: true, + leaf: true }, { text: gettext('Virus Quarantine'), iconCls: 'fa fa-bug', path: 'pmgVirusQuarantine', - leaf: true, + leaf: true }, { text: gettext('User Whitelist'), iconCls: 'fa fa-file-o', path: 'pmgUserWhitelist', - leaf: true, + leaf: true }, { text: gettext('User Blacklist'), iconCls: 'fa fa-file', path: 'pmgUserBlacklist', - leaf: true, + leaf: true }, { text: gettext('Tracking Center'), iconCls: 'fa fa-map-o', path: 'pmgMailTracker', - leaf: true, + leaf: true }, { text: gettext('Queues'), iconCls: 'fa fa-bars', path: 'pmgQueueAdministration', - leaf: true, + leaf: true } ] }, diff --git a/js/PostfixMailQueue.js b/js/PostfixMailQueue.js index 80c5cdf..d757309 100644 --- a/js/PostfixMailQueue.js +++ b/js/PostfixMailQueue.js @@ -88,7 +88,7 @@ Ext.define('PMG.Postfix.MailQueue', { var win = Ext.create('PMG.ViewMailHeaders', { title: view.title + ' : ' + rec.data.queue_id, - url: url, + url: url }); win.show(); }, diff --git a/js/PostfixQShape.js b/js/PostfixQShape.js index 2a43e2d..2f0b073 100644 --- a/js/PostfixQShape.js +++ b/js/PostfixQShape.js @@ -87,7 +87,7 @@ Ext.define('PMG.Postfix.QShape', { activate: function() { this.view.store.load(); // reload } - }, + } } }, diff --git a/js/QuarantineList.js b/js/QuarantineList.js index ffe1dc2..fbd6fad 100644 --- a/js/QuarantineList.js +++ b/js/QuarantineList.js @@ -159,7 +159,7 @@ Ext.define('PMG.QuarantineList', { control: { '#':{ - beforedestroy: 'resetEmail', + beforedestroy: 'resetEmail' }, 'combobox[reference=email]': { change: { diff --git a/js/QuarantineView.js b/js/QuarantineView.js index 06e7476..2721d22 100644 --- a/js/QuarantineView.js +++ b/js/QuarantineView.js @@ -23,13 +23,13 @@ Ext.define('PMG.QuarantineNavigationTree', { text: gettext('Whitelist'), //iconCls: 'fa fa-cubes', path: 'pmgUserWhitelist', - leaf: true, + leaf: true }, { text: gettext('Blacklist'), //iconCls: 'fa fa-cubes', path: 'pmgUserBlacklist', - leaf: true, + leaf: true } ] } @@ -237,7 +237,7 @@ Ext.define('PMG.QuarantineView', { layout: 'card', region: 'center', border: false, - reference: 'contentpanel', + reference: 'contentpanel' } ] }); diff --git a/js/QueueAdministration.js b/js/QueueAdministration.js index 5444397..e72a9f9 100644 --- a/js/QueueAdministration.js +++ b/js/QueueAdministration.js @@ -30,7 +30,7 @@ Ext.define('PMG.QueueAdministration', { control: { pmgPostfixQShape: { - itemdblclick: 'onSelect', + itemdblclick: 'onSelect' } } }, diff --git a/js/RBLStatistics.js b/js/RBLStatistics.js index bce2f8f..f6939c5 100644 --- a/js/RBLStatistics.js +++ b/js/RBLStatistics.js @@ -18,7 +18,7 @@ Ext.define('PMG.RBLStatistics', { legend: false, fields: [ 'count' ], fieldTitles: [ - gettext('RBL rejects'), + gettext('RBL rejects') ], store: { type: 'pmgStatStore', diff --git a/js/ReceiverStatistics.js b/js/ReceiverStatistics.js index 773f859..bccd483 100644 --- a/js/ReceiverStatistics.js +++ b/js/ReceiverStatistics.js @@ -204,7 +204,7 @@ Ext.define('PMG.ReceiverStatistics', { layout: 'border', border: false, defaults: { - border: false, + border: false }, controller: { @@ -231,7 +231,7 @@ Ext.define('PMG.ReceiverStatistics', { layout: 'fit', flex: 1, - listeners: { selectionchange: 'selectionChange' }, + listeners: { selectionchange: 'selectionChange' } }, { xtype: 'pmgReceiverDetails', diff --git a/js/RuleConfiguration.js b/js/RuleConfiguration.js index d230d4b..9f28472 100644 --- a/js/RuleConfiguration.js +++ b/js/RuleConfiguration.js @@ -17,7 +17,7 @@ Ext.define('PMG.RulesConfiguration', { layout: 'border', border: false, defaults: { - border: false, + border: false }, controller: { @@ -112,7 +112,7 @@ Ext.define('PMG.RulesConfiguration', { data: { selectedRule: undefined, baseUrl: '/config/ruledb/rules' - }, + } }, items: [ @@ -135,7 +135,7 @@ Ext.define('PMG.RulesConfiguration', { xtype: 'button', text: gettext('Add'), iconCls: 'fa fa-plus-circle', - reference: 'addButton', + reference: 'addButton' }, { xtype: 'proxmoxStdRemoveButton', @@ -171,7 +171,7 @@ Ext.define('PMG.RulesConfiguration', { direction: 'DESC' }, { - property: 'name', + property: 'name' } ] }, @@ -181,16 +181,16 @@ Ext.define('PMG.RulesConfiguration', { { text: 'Active', dataIndex: 'active', - hidden : true, + hidden : true }, { text: 'Name', dataIndex: 'name', - flex: 1, + flex: 1 }, { text: 'Priority', - dataIndex: 'priority', + dataIndex: 'priority' }, { text: 'Direction', @@ -216,7 +216,7 @@ Ext.define('PMG.RulesConfiguration', { return (rec.get('active') ? 'Deactivate' : 'Activate'); }, handler: 'toggleIconClick' - }, + } ] } ] @@ -226,7 +226,7 @@ Ext.define('PMG.RulesConfiguration', { reference: 'infopanel', xtype: 'pmgRuleInfo', split: true, - width: 440, + width: 440 } ] }); diff --git a/js/SenderStatistics.js b/js/SenderStatistics.js index b685c50..89ad408 100644 --- a/js/SenderStatistics.js +++ b/js/SenderStatistics.js @@ -82,7 +82,7 @@ Ext.define('PMG.SenderDetails', { header: gettext('Time'), format: 'H:i:s', dataIndex: 'time' - }, + } ], initComponent: function() { @@ -192,7 +192,7 @@ Ext.define('PMG.SenderStatistics', { layout: 'border', border: false, defaults: { - border: false, + border: false }, controller: { @@ -219,7 +219,7 @@ Ext.define('PMG.SenderStatistics', { layout: 'fit', flex: 1, - listeners: { selectionchange: 'selectionChange' }, + listeners: { selectionchange: 'selectionChange' } }, { xtype: 'pmgSenderDetails', diff --git a/js/SpamDetectorLanguages.js b/js/SpamDetectorLanguages.js index cd30107..b30e3ab 100644 --- a/js/SpamDetectorLanguages.js +++ b/js/SpamDetectorLanguages.js @@ -66,7 +66,7 @@ Ext.define('PMG.SpamDetectorLanguagesInputPanel', { [ 'uk', 'Ukrainian' ], [ 'vi', 'Vietnamese' ], [ 'yi', 'Yiddish' ], - [ 'zh', 'Chinese' ], + [ 'zh', 'Chinese' ] ], onGetValues: function(values) { diff --git a/js/SpamDetectorOptions.js b/js/SpamDetectorOptions.js index 8700542..2c2ecf4 100644 --- a/js/SpamDetectorOptions.js +++ b/js/SpamDetectorOptions.js @@ -51,7 +51,7 @@ Ext.define('PMG.SpamDetectorOptions', { }], url: '/api2/json' + baseurl, editorConfig: { - url: '/api2/extjs' + baseurl, + url: '/api2/extjs' + baseurl }, interval: 5000, cwidth1: 200, diff --git a/js/SpamInfoGrid.js b/js/SpamInfoGrid.js index a1b3324..309533d 100644 --- a/js/SpamInfoGrid.js +++ b/js/SpamInfoGrid.js @@ -55,5 +55,5 @@ Ext.define('PMG.grid.SpamInfoGrid',{ dataIndex: 'desc', flex: 3 } - ], + ] }); diff --git a/js/SpamQuarantineOptions.js b/js/SpamQuarantineOptions.js index 9806ca7..9eea97f 100644 --- a/js/SpamQuarantineOptions.js +++ b/js/SpamQuarantineOptions.js @@ -36,7 +36,7 @@ Ext.define('PMG.SpamQuarantineOptions', { comboItems: [ ['ticket', render_authmode('ticket') ], ['ldap', render_authmode('ldap') ], - ['ldapticket', render_authmode('ldapticket') ]], + ['ldapticket', render_authmode('ldapticket') ]] }); var render_reportstyle = function(value) { @@ -51,7 +51,7 @@ Ext.define('PMG.SpamQuarantineOptions', { ['short', render_reportstyle('short') ], ['verbose', render_reportstyle('verbose') ], ['outlook', render_reportstyle('outlook') ], - ['custom', render_reportstyle('custom') ]], + ['custom', render_reportstyle('custom') ]] }); me.add_text_row('hostname', gettext('Quarantine Host'), @@ -79,7 +79,7 @@ Ext.define('PMG.SpamQuarantineOptions', { }], url: '/api2/json' + baseurl, editorConfig: { - url: '/api2/extjs' + baseurl, + url: '/api2/extjs' + baseurl }, interval: 5000, cwidth1: 200, diff --git a/js/SpamScoreDistribution.js b/js/SpamScoreDistribution.js index f67aa33..6bd1170 100644 --- a/js/SpamScoreDistribution.js +++ b/js/SpamScoreDistribution.js @@ -25,7 +25,7 @@ Ext.define('PMG.SpamScoreDistribution', { } } } - ], + ] }, columns: [ @@ -48,7 +48,7 @@ Ext.define('PMG.SpamScoreDistribution', { widget: { xtype: 'progressbarwidget', textTpl: ['{percent:number("0")}%' ] - }, + } } ] }); diff --git a/js/SystemConfiguration.js b/js/SystemConfiguration.js index e921e94..741d54b 100644 --- a/js/SystemConfiguration.js +++ b/js/SystemConfiguration.js @@ -54,7 +54,7 @@ Ext.define('PMG.SystemConfiguration', { layout: { type: 'vbox', align: 'stretch', - multi: true, + multi: true }, bodyPadding: '0 0 10 0', defaults: { @@ -68,7 +68,7 @@ Ext.define('PMG.SystemConfiguration', { minHeight: 200, title: gettext('Interfaces'), xtype: 'proxmoxNodeNetworkView', - nodename: Proxmox.NodeName, + nodename: Proxmox.NodeName }, { title: gettext('DNS'), @@ -79,7 +79,7 @@ Ext.define('PMG.SystemConfiguration', { title: gettext('Time'), xtype: 'proxmoxNodeTimeView', nodename: Proxmox.NodeName - }, + } ] }, { @@ -94,7 +94,7 @@ Ext.define('PMG.SystemConfiguration', { { itemId: 'options', title: gettext('Options'), - xtype: 'pmgSystemOptions', + xtype: 'pmgSystemOptions' } ] }); diff --git a/js/SystemOptions.js b/js/SystemOptions.js index 1d02639..4be49bd 100644 --- a/js/SystemOptions.js +++ b/js/SystemOptions.js @@ -29,7 +29,7 @@ Ext.define('PMG.SystemOptions', { }], listeners: { - itemdblclick: 'onEdit', + itemdblclick: 'onEdit' }, add_proxy_row: function(name, text, opts) { diff --git a/js/UserBlackWhiteList.js b/js/UserBlackWhiteList.js index 8db16e0..477e188 100644 --- a/js/UserBlackWhiteList.js +++ b/js/UserBlackWhiteList.js @@ -34,7 +34,7 @@ Ext.define('PMG.UserBlackWhiteList', { items.push({ xtype: 'hidden', name: key, - value: value, + value: value }); }); @@ -132,7 +132,7 @@ Ext.define('PMG.UserBlackWhiteList', { editable: true, reference: 'email', name: 'email', - fieldLabel: 'E-Mail', + fieldLabel: 'E-Mail' }, { text: gettext('Add'), @@ -178,7 +178,7 @@ Ext.define('PMG.UserBlacklist', { proxy: { type: 'proxmox', url: "/api2/json/quarantine/blacklist" - }, + } }, dockedItems: [ @@ -187,7 +187,7 @@ Ext.define('PMG.UserBlacklist', { bodyStyle: { padding: '10px', 'border-left': '0px', - 'border-right': '0px', + 'border-right': '0px' }, html: gettext('With this feature, you can manually mark E-mails from certain domains or addresses as spam.') + '

' + '*.com (all mails from .com domains)' + '
' + @@ -212,7 +212,7 @@ Ext.define('PMG.UserWhitelist', { proxy: { type: 'proxmox', url: "/api2/json/quarantine/whitelist" - }, + } }, dockedItems: [ @@ -221,7 +221,7 @@ Ext.define('PMG.UserWhitelist', { bodyStyle: { padding: '10px', 'border-left': '0px', - 'border-right': '0px', + 'border-right': '0px' }, html: gettext('With this feature, you can manually bypass spam checking for certain domains or E-mail addresses.') + '

' + '*.com (all mails from .com domains)' + '
' + diff --git a/js/UserEdit.js b/js/UserEdit.js index b0bf39e..5811c24 100644 --- a/js/UserEdit.js +++ b/js/UserEdit.js @@ -25,7 +25,7 @@ Ext.define('PMG.UserEdit', { return { useridXType: userid ? 'displayfield' : 'textfield', - isSuperUser: userid === 'root@pam', + isSuperUser: userid === 'root@pam' } }, @@ -39,7 +39,7 @@ Ext.define('PMG.UserEdit', { allowBlank: false, cbind: { submitValue: '{create}', - xtype: '{useridXType}', + xtype: '{useridXType}' } }, { diff --git a/js/UserView.js b/js/UserView.js index 5588be0..e1cb972 100644 --- a/js/UserView.js +++ b/js/UserView.js @@ -89,7 +89,7 @@ Ext.define('PMG.UserView', { listeners: { scope: 'controller', - itemdblclick: 'onEdit', + itemdblclick: 'onEdit' }, tbar: [ diff --git a/js/Utils.js b/js/Utils.js index 2f714e1..7a8e611 100644 --- a/js/Utils.js +++ b/js/Utils.js @@ -17,7 +17,7 @@ Ext.define('PMG.Utils', { root: gettext('Superuser'), admin: gettext('Administrator'), qmanager: gettext('Quarantine Manager'), - audit: gettext('Auditor'), + audit: gettext('Auditor') }, format_user_role: function(role) { diff --git a/js/VirusDetectorOptions.js b/js/VirusDetectorOptions.js index bfd3101..30fba4c 100644 --- a/js/VirusDetectorOptions.js +++ b/js/VirusDetectorOptions.js @@ -44,7 +44,7 @@ Ext.define('PMG.VirusDetectorOptions', { }], url: '/api2/json' + baseurl, editorConfig: { - url: '/api2/extjs' + baseurl, + url: '/api2/extjs' + baseurl }, interval: 5000, cwidth1: 200, diff --git a/js/VirusQuarantineOptions.js b/js/VirusQuarantineOptions.js index 4c28fae..87485df 100644 --- a/js/VirusQuarantineOptions.js +++ b/js/VirusQuarantineOptions.js @@ -31,7 +31,7 @@ Ext.define('PMG.VirusQuarantineOptions', { }], url: '/api2/json' + baseurl, editorConfig: { - url: '/api2/extjs' + baseurl, + url: '/api2/extjs' + baseurl }, interval: 5000, cwidth1: 200, diff --git a/js/dashboard/MiniGraph.js b/js/dashboard/MiniGraph.js index 5736d8f..779148b 100644 --- a/js/dashboard/MiniGraph.js +++ b/js/dashboard/MiniGraph.js @@ -18,8 +18,8 @@ Ext.define('PMG.dashboard.MiniGraph', { }, style: { axisLine: false, - majorTickSize: 0, - }, + majorTickSize: 0 + } }, { type: 'time', @@ -31,11 +31,11 @@ Ext.define('PMG.dashboard.MiniGraph', { }, style: { axisLine: false, - majorTickSize: 0, + majorTickSize: 0 } } ], border: false, flex: 1, - noTool: true, + noTool: true });