Projekt

Allgemein

Profil

GX-Bug #60172 » attachments-modal.patch

Till Tepelmann, 22.11.2018 15:37

Unterschiede anzeigen:

src/admin/javascript/engine/controllers/emails/attachments_modal.js (date 1542895966000)
1 1
/* --------------------------------------------------------------
2
 emails_modal.js 2017-09-07
2
 emails_modal.js 2018-11-22
3 3
 Gambio GmbH
4 4
 http://www.gambio.de
5
 Copyright (c) 2017 Gambio GmbH
5
 Copyright (c) 2018 Gambio GmbH
6 6
 Released under the GNU General Public License (Version 2)
7 7
 [http://www.gnu.org/licenses/gpl-2.0.html]
8 8
 ----------------------------------------------------------------
......
20 20
	
21 21
	[
22 22
		'modal',
23
		gx.source + '/libs/emails'
23
		gx.source + '/libs/emails',
24
		jse.source + '/vendor/DateJS/date'
24 25
	],
25 26
	
26 27
	/** @lends module:Controllers/attachments_modal */
......
87 88
			// Display confirmation modal before proceeding.
88 89
			var modalOptions = {
89 90
				title: jse.core.lang.translate('delete', 'buttons') + ' - '
90
				+ (new Date(Date.parse($this.find('#removal-date').datepicker('getDate')))).toString('dd.MM.yyyy'),
91
				+ $this.find('#removal-date').datepicker('getDate').toString('dd.MM.yyyy'),
91 92
				content: jse.core.lang.translate('prompt_delete_old_attachments', 'emails'),
92 93
				buttons: [
93 94
					{
......
100 101
						text: jse.core.lang.translate('yes', 'lightbox_buttons'),
101 102
						click: function() {
102 103
							jse.libs.emails.deleteOldAttachments($('#removal-date')
103
								.datepicker('getDate'))
104
								.datepicker('getDate').toString('yyyy-MM-dd HH:mm:ss'))
104 105
								.done(function(response) {
105 106
									var size = (response.size.megabytes !== 0)
106 107
										? response.size.megabytes + ' Megabytes'
    (1-1/1)