]> git.proxmox.com Git - pmg-gui.git/blobdiff - js/SpamScoreDistribution.js
fix #2533: quarantine: add overflowHandler to the preview panel
[pmg-gui.git] / js / SpamScoreDistribution.js
index 6bd117026255f012ffefb869b5a8df786ca1ef40..f9d82c1685c1560a010297790430eaf3051c2df6 100644 (file)
@@ -7,7 +7,7 @@ Ext.define('PMG.SpamScoreDistribution', {
 
     title: gettext('Statistics') + ': ' + gettext('Spam Scores'),
 
-    tbar: [ { xtype: 'pmgStatTimeSelector' } ],
+    tbar: [{ xtype: 'pmgStatTimeSelector' }],
 
     store: {
        xclass: 'PMG.data.StatStore',
@@ -21,23 +21,23 @@ Ext.define('PMG.SpamScoreDistribution', {
                    if (rec.data.level >= 10) {
                        return PMG.Utils.scoreText + ' >= 10';
                    } else {
-                       return PMG.Utils.scoreText + ' ' + rec.data.level;
+                       return PMG.Utils.scoreText + ' ' + rec.data.level.toString();
                    }
-               }
-           }
-       ]
+               },
+           },
+       ],
     },
 
     columns: [
        {
            header: PMG.Utils.scoreText,
            flex: 1,
-           dataIndex: 'label'
+           dataIndex: 'label',
        },
        {
            header: gettext("Count"),
            width: 150,
-           dataIndex: 'count'
+           dataIndex: 'count',
        },
        {
            header: gettext("Percentage"),
@@ -47,8 +47,8 @@ Ext.define('PMG.SpamScoreDistribution', {
            dataIndex: 'ratio',
            widget: {
                xtype: 'progressbarwidget',
-               textTpl: ['{percent:number("0")}%' ]
-           }
-       }
-    ]
+               textTpl: ['{percent:number("0")}%'],
+           },
+       },
+    ],
 });