first commit

This commit is contained in:
salam committed 2026-10-19 08:18:39 +02:00
commit 1218dd1517
12716 files changed
+989233

No files matched your search

@@ -0,0 +1,56 @@
/*
* This file is part of the TYPO3 CMS project.
*
* It is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License, either version 2
* of the License, or any later version.
*
* For the full copyright and license information, please read the
* LICENSE.txt file that was distributed with this source code.
*
* The TYPO3 project - inspiring people to share!
*/
/**
* Module: TYPO3/CMS/Impexp/ContextMenuActions
*
* JavaScript to handle import/export actions from context menu
* @exports TYPO3/CMS/Impexp/ContextMenuActions
*/
define(function() {
'use strict';
/**
* @exports TYPO3/CMS/Impexp/ContextMenuActions
*/
var ContextMenuActions = {};
ContextMenuActions.exportT3d = function(table, uid) {
if (table === 'pages') {
top.TYPO3.Backend.ContentContainer.setUrl(
top.TYPO3.settings.ImportExport.moduleUrl +
'&tx_impexp[action]=export&' +
'id=0&tx_impexp[pagetree][id]=' + uid +
'&tx_impexp[pagetree][levels]=0' +
'&tx_impexp[pagetree][tables][]=_ALL'
);
} else {
top.TYPO3.Backend.ContentContainer.setUrl(
top.TYPO3.settings.ImportExport.moduleUrl +
'&tx_impexp[action]=export' +
'&tx_impexp[record][]=' + table + ':' + uid +
'&tx_impexp[external_ref][tables][]=_ALL'
);
}
};
ContextMenuActions.importT3d = function(table, uid) {
top.TYPO3.Backend.ContentContainer.setUrl(
top.TYPO3.settings.ImportExport.moduleUrl +
'&id=' + uid +
'&table=' + table + '&tx_impexp[action]=import'
);
};
return ContextMenuActions;
});
@@ -0,0 +1,44 @@
/*
* This file is part of the TYPO3 CMS project.
*
* It is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License, either version 2
* of the License, or any later version.
*
* For the full copyright and license information, please read the
* LICENSE.txt file that was distributed with this source code.
*
* The TYPO3 project - inspiring people to share!
*/
/**
* Module: TYPO3/CMS/Impexp/ImportExport
* JavaScript to handle confirm windows in the Import/Export module
* @exports TYPO3/CMS/Impexp/ImportExport
*/
define(['jquery', 'TYPO3/CMS/Backend/Modal'], function($, Modal) {
'use strict';
$(function() {
$(document).on('click', '.t3js-confirm-trigger', function() {
var $button = $(this);
Modal.confirm($button.data('title'), $button.data('message'))
.on('confirm.button.ok', function() {
$('#t3js-submit-field')
.attr('name', $button.attr('name'))
.closest('form').submit();
Modal.currentModal.trigger('modal-dismiss');
})
.on('confirm.button.cancel', function() {
Modal.currentModal.trigger('modal-dismiss');
});
});
$('.t3js-impexp-toggledisabled').on('click', function() {
var $checkboxes = $('table.t3js-impexp-preview tr[data-active="hidden"] input.t3js-exclude-checkbox');
if ($checkboxes.length) {
$checkboxes.prop('checked', !$checkboxes.get(0).checked);
}
});
});
});