title: gettext('Count'),
position: 'left',
grid: true,
- minimum: 0
+ minimum: 0,
}, {
type: 'category',
position: 'bottom',
- fields: ['index']
+ fields: ['index'],
}],
initComponent: function() {
renderer: function(tooltip, record, item) {
var start = record.get('index');
var end = start+1;
- tooltip.setHtml('Time: ' + start + ' - ' + end + '<br>' +
+ tooltip.setHtml('Time: ' + start.toString() +
+ ' - ' + end.toString() + '<br>' +
'Count: ' + record.get(item.field));
- }
- }
+ },
+ },
});
- }
+ },
});
Ext.define('PMG.HourlyMailDistribution', {
xtype: 'pmgHourlyMailDistribution',
scrollable: true,
+ border: false,
- bodyPadding: '0 0 10 0',
+ bodyPadding: '10 0 0 0',
defaults: {
- margin: '10 10 0 10'
+ width: 700,
+ padding: '0 0 10 10',
},
- title: gettext('Hourly Distribution'),
+ layout: 'column',
+
+ title: gettext('Statistics') + ': ' + gettext('Hourly Distribution'),
- tbar: [ { xtype: 'pmgStatTimeSelector' } ],
+ tbar: [{ xtype: 'pmgStatTimeSelector' }],
initComponent: function() {
var me = this;
{ type: 'integer', name: 'viruscount_ou' },
{ type: 'integer', name: 'bounces_in' },
{ type: 'integer', name: 'bounces_out' },
- ]
+ ],
});
me.items = [
xtype: 'pmgMailDistChart',
title: gettext('Incoming Mails'),
field: 'count_in',
- store: store
+ store: store,
},
{
xtype: 'pmgMailDistChart',
title: gettext('Outgoing Mails'),
field: 'count_out',
- store: store
- }
+ store: store,
+ },
];
me.callParent();
me.on('destroy', store.destroy, store);
- }
+ },
});