]> git.proxmox.com Git - pmg-gui.git/blobdiff - js/SpamQuarantine.js
subscription: remove hard-coded white background
[pmg-gui.git] / js / SpamQuarantine.js
index cf7f181be7bb7b84fbd174bc7a150f6be3541443..1608f18be1c4a7bbb2e50dc3b9702ac527d9071d 100644 (file)
@@ -51,21 +51,9 @@ Ext.define('PMG.SpamQuarantineController', {
        spam.setDisabled(true);
        spam.setPressed(false);
        me.lookupReference('spaminfo').setVisible(false);
-       me.callParent(selection);
-    },
-
-    onSelectMail: function() {
-       let me = this;
-       let list = me.lookupReference('list');
-       let selection = list.selModel.getSelection();
-       if (selection.length <= 1) {
-           let rec = selection[0] || {};
-           me.lookupReference('spaminfo').setID(rec);
-       }
-       me.callParent();
+       me.callParent(arguments);
     },
 
-
     toggleSpamInfo: function(btn) {
        var grid = this.lookupReference('spaminfo');
        grid.setVisible(!grid.isVisible());
@@ -121,7 +109,6 @@ Ext.define('PMG.SpamQuarantineController', {
            click: 'toggleSpamInfo',
        },
        'pmgQuarantineList': {
-           selectionChange: 'onSelectMail',
            itemkeypress: 'keyPress',
            rowcontextmenu: 'openContextMenu',
        },
@@ -156,7 +143,6 @@ Ext.define('PMG.SpamQuarantine', {
            title: gettext('Spam Quarantine'),
            xtype: 'pmgQuarantineList',
            selModel: 'checkboxmodel',
-           emailSelection: true,
            reference: 'list',
            region: 'west',
            width: 500,
@@ -217,6 +203,12 @@ Ext.define('PMG.SpamQuarantine', {
                {
                    xtype: 'toolbar',
                    dock: 'top',
+                   overflowHandler: 'scroller',
+                   style: {
+                       // docked items have set the bottom with to 0px with '! important'
+                       // but we still want one here, so we can remove the borders of the grids
+                       'border-bottom-width': '1px ! important',
+                   },
                    items: [
                        {
                            xtype: 'button',
@@ -275,13 +267,21 @@ Ext.define('PMG.SpamQuarantine', {
                },
                {
                    xtype: 'pmgSpamInfoGrid',
-                   border: false,
                    reference: 'spaminfo',
+                   border: false,
                },
                {
                    xtype: 'pmgMailInfo',
                    hidden: true,
                    reference: 'mailinfo',
+                   border: false,
+               },
+               {
+                   xtype: 'pmgAttachmentGrid',
+                   reference: 'attachmentlist',
+                   showDownloads: false,
+                   border: false,
+                   dock: 'bottom',
                },
            ],
        },