]> git.proxmox.com Git - pmg-gui.git/blobdiff - js/AttachmentQuarantine.js
StatTimeSelector: don't show invalid month/day combinations
[pmg-gui.git] / js / AttachmentQuarantine.js
index f199ed1fcd2670f72cd735b21f1d859babe53572..6449012803ce149f4988bd09c0b4383b94a096b9 100644 (file)
@@ -1,5 +1,3 @@
-/*jslint confusion: true*/
-/*format is a string and a function*/
 Ext.define('pmg-attachment-list', {
     extend: 'Ext.data.Model',
     fields: ['id', 'envelope_sender', 'from', 'sender', 'receiver', 'subject',
@@ -42,7 +40,10 @@ Ext.define('PMG.AttachmentQuarantine', {
                return;
            }
 
-           var url = '/api2/htmlmail/quarantine/content?id=' + rec.data.id + (raw?'&raw=1':'');
+           let url = `/api2/htmlmail/quarantine/content?id=${rec.data.id}`;
+           if (raw) {
+               url += '&raw=1';
+           }
            preview.setDisabled(false);
            preview.update("<iframe frameborder=0 width=100% height=100% sandbox='allow-same-origin' src='" + url +"'></iframe>");
        },
@@ -145,6 +146,7 @@ Ext.define('PMG.AttachmentQuarantine', {
            title: gettext('Selected Mail'),
            border: false,
            region: 'center',
+           layout: 'fit',
            split: true,
            reference: 'preview',
            disabled: true,