]> git.proxmox.com Git - pmg-gui.git/blobdiff - js/SpamQuarantine.js
quarantine list: cope with undefined mail value
[pmg-gui.git] / js / SpamQuarantine.js
index f14f9f2f094c38b9f6e01ddb4fac9b797f591913..1608f18be1c4a7bbb2e50dc3b9702ac527d9071d 100644 (file)
@@ -51,7 +51,7 @@ Ext.define('PMG.SpamQuarantineController', {
        spam.setDisabled(true);
        spam.setPressed(false);
        me.lookupReference('spaminfo').setVisible(false);
-       me.callParent(selection);
+       me.callParent(arguments);
     },
 
     toggleSpamInfo: function(btn) {
@@ -143,7 +143,6 @@ Ext.define('PMG.SpamQuarantine', {
            title: gettext('Spam Quarantine'),
            xtype: 'pmgQuarantineList',
            selModel: 'checkboxmodel',
-           emailSelection: true,
            reference: 'list',
            region: 'west',
            width: 500,
@@ -225,14 +224,6 @@ Ext.define('PMG.SpamQuarantine', {
                            enableToggle: true,
                            iconCls: 'fa fa-bullhorn',
                        },
-                       {
-                           xtype: 'button',
-                           reference: 'attachments',
-                           text: gettext('Toggle Attachments'),
-                           enableToggle: true,
-                           pressed: true,
-                           iconCls: 'fa fa-paperclip',
-                       },
                        '->',
                        {
                            xtype: 'button',
@@ -279,21 +270,19 @@ Ext.define('PMG.SpamQuarantine', {
                    reference: 'spaminfo',
                    border: false,
                },
-               {
-                   xtype: 'pmgAttachmentGrid',
-                   minHeight: 50,
-                   maxHeight: 250,
-                   scrollable: true,
-                   reference: 'attachmentlist',
-                   showDownloads: false,
-                   border: false,
-               },
                {
                    xtype: 'pmgMailInfo',
                    hidden: true,
                    reference: 'mailinfo',
                    border: false,
                },
+               {
+                   xtype: 'pmgAttachmentGrid',
+                   reference: 'attachmentlist',
+                   showDownloads: false,
+                   border: false,
+                   dock: 'bottom',
+               },
            ],
        },
     ],