]> git.proxmox.com Git - pmg-gui.git/blobdiff - js/VirusCharts.js
quarantine list: cope with undefined mail value
[pmg-gui.git] / js / VirusCharts.js
index 7c94451377b9f85a0ef0d67e95e55d1ceed91120..8f40a3ec51a140f333442d66c87111545478b684 100644 (file)
@@ -1,44 +1,43 @@
-/*global Proxmox*/
 Ext.define('PMG.VirusCharts', {
     extend: 'Ext.grid.GridPanel',
     xtype: 'pmgVirusCharts',
 
     title: gettext('Statistics') + ': ' + gettext('Virus Charts'),
-    
+
     border: false,
     disableSelection: true,
 
-    tbar: [ { xtype: 'pmgStatTimeSelector' } ],
+    tbar: [{ xtype: 'pmgStatTimeSelector' }],
 
     emptyText: gettext('No data in database'),
     viewConfig: {
-       deferEmptyText: false
+       deferEmptyText: false,
     },
 
     store: {
        xclass: 'PMG.data.StatStore',
-       fields: [ 'name', 'count' ],
-       staturl: "/api2/json/statistics/virus"
+       fields: ['name', 'count'],
+       staturl: "/api2/json/statistics/virus",
     },
 
     columns: [
        {
            header: gettext('Name'),
            flex: 1,
-           dataIndex: 'name'
+           dataIndex: 'name',
        },
        {
            header: gettext('Count'),
            width: 150,
-           dataIndex: 'count'
-       }
+           dataIndex: 'count',
+       },
     ],
 
     initComponent: function() {
        var me = this;
-       
+
        me.callParent();
-       
+
        Proxmox.Utils.monStoreErrors(me, me.store);
-    }
+    },
 });