+/*global Proxmox*/
Ext.define('pmg-mail-tracker', {
extend: 'Ext.data.Model',
fields: [
value: (function() {
var now = new Date();
return new Date(now.getTime() - 3600000);
- })(),
+ }()),
xtype: 'promxoxDateTimeField'
},
{
xtype: 'promxoxDateTimeField'
},
{
- layout: 'hbox',
+ layout: {
+ type: 'hbox'
+ },
border: false,
items: [
{
height: 400,
scrollable: true,
- layout: 'auto',
+ layout: {
+ type: 'auto'
+ },
modal: true,
bodyPadding: 5,
plugins: [
{
ptype: 'rowexpander',
- rowBodyTpl: '<p class="logs">{logs}</p>',
+ rowBodyTpl: '<p class="logs">{logs}</p>'
}
],
var icon = 'question-circle';
var rstatus = rec.data.rstatus;
if (v !== undefined && v !== '') {
- vtext = PMG.Utils.mail_status_map[v] || v;
+ var vtext = PMG.Utils.mail_status_map[v] || v;
icon = v;
if (rstatus !== undefined && rstatus !== '') {
- rtext = PMG.Utils.mail_status_map[rstatus] || rstatus;
+ var rtext = PMG.Utils.mail_status_map[rstatus] || rstatus;
returntext = vtext + '/' + rtext;
icon = rstatus;
} else if (rec.data.qid !== undefined) {