]> git.proxmox.com Git - pmg-gui.git/blobdiff - js/MailTracker.js
correctly use 'getStore' instead of 'get' and reload instead of load
[pmg-gui.git] / js / MailTracker.js
index 94740243a8b5a056e4de02f3c089b7ea4dccc45e..45695d58922453cdeb60dc7d7ac196cff08adc67 100644 (file)
@@ -1,3 +1,4 @@
+/*global Proxmox*/
 Ext.define('pmg-mail-tracker', {
     extend: 'Ext.data.Model',
     fields: [
@@ -95,7 +96,7 @@ Ext.define('PMG.MailTrackerFilter', {
                    value: (function() {
                        var now = new Date();
                        return new Date(now.getTime() - 3600000);
-                   })(),
+                   }()),
                    xtype: 'promxoxDateTimeField'
                },
                {
@@ -105,7 +106,9 @@ Ext.define('PMG.MailTrackerFilter', {
                    xtype: 'promxoxDateTimeField'
                },
                {
-                   layout: 'hbox',
+                   layout: {
+                       type: 'hbox'
+                   },
                    border: false,
                    items: [
                        {
@@ -144,7 +147,9 @@ Ext.define('PMG.MaiLogWindow', {
     height: 400,
     scrollable: true,
 
-    layout: 'auto',
+    layout: {
+       type: 'auto'
+    },
     modal: true,
     bodyPadding: 5,
 
@@ -216,7 +221,7 @@ Ext.define('PMG.MailTracker', {
     plugins: [
        {
            ptype: 'rowexpander',
-           rowBodyTpl: '<p class="logs">{logs}</p>',
+           rowBodyTpl: '<p class="logs">{logs}</p>'
        }
     ],
 
@@ -327,10 +332,10 @@ Ext.define('PMG.MailTracker', {
                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) {