GX-Bug #52805 » DeleteOldAttachmentFix.patch
src/admin/javascript/engine/controllers/emails/attachments_modal.js (revision ) | ||
---|---|---|
87 | 87 |
// Display confirmation modal before proceeding. |
88 | 88 |
var modalOptions = { |
89 | 89 |
title: jse.core.lang.translate('delete', 'buttons') + ' - ' |
90 |
+ Date.parse($this.find('#removal-date').datepicker('getDate')).toString('dd.MM.yyyy'),
|
|
90 |
+ $this.find('#removal-date').val(),
|
|
91 | 91 |
content: jse.core.lang.translate('prompt_delete_old_attachments', 'emails'), |
92 | 92 |
buttons: [ |
93 | 93 |
{ |
... | ... | |
100 | 100 |
text: jse.core.lang.translate('yes', 'lightbox_buttons'), |
101 | 101 |
click: function() { |
102 | 102 |
jse.libs.emails.deleteOldAttachments($('#removal-date') |
103 |
.datepicker('getDate'))
|
|
103 |
.val())
|
|
104 | 104 |
.done(function(response) { |
105 | 105 |
var size = (response.size.megabytes !== 0) |
106 | 106 |
? response.size.megabytes + ' Megabytes' |
src/admin/javascript/engine/controllers/emails/emails_paginator.js (revision ) | ||
---|---|---|
112 | 112 |
|
113 | 113 |
// Reset modal state. |
114 | 114 |
$attachmentsModal.find('#removal-date').val('').datepicker({ |
115 |
maxDate: new Date() |
|
115 |
maxDate: new Date(), |
|
116 |
dateFormat: 'dd.mm.yy' |
|
116 | 117 |
}); |
117 | 118 |
$(document).find('.ui-datepicker').not('.gx-container').addClass('gx-container'); |
118 | 119 |
|