Commit fe1f18ff authored by Oliver Bartsch's avatar Oliver Bartsch Committed by Benjamin Franzke
Browse files

[TASK] Migrate SiteInlineActions to TypeScript

Resolves: #94133
Releases: master
Change-Id: I2101f3acc5c32c45efa3a8330bb7b6aa1d9716ce
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/69138

Tested-by: core-ci's avatarcore-ci <typo3@b13.com>
Tested-by: Andreas Fernandez's avatarAndreas Fernandez <a.fernandez@scripting-base.de>
Tested-by: Benjamin Franzke's avatarBenjamin Franzke <bfr@qbus.de>
Reviewed-by: Andreas Fernandez's avatarAndreas Fernandez <a.fernandez@scripting-base.de>
Reviewed-by: Benjamin Franzke's avatarBenjamin Franzke <bfr@qbus.de>
parent a5e131c0
/*
* 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!
*/
import DocumentService = require('TYPO3/CMS/Core/DocumentService');
/**
* Module: TYPO3/CMS/Backend/SiteInlineActions
* Site configuration backend module FormEngine inline:
* Override inline 'create' and 'details' route to point to SiteInlineAjaxController
*/
class SiteInlineActions {
constructor() {
DocumentService.ready().then((): void => {
TYPO3.settings.ajaxUrls.record_inline_details = TYPO3.settings.ajaxUrls.site_configuration_inline_details;
TYPO3.settings.ajaxUrls.record_inline_create = TYPO3.settings.ajaxUrls.site_configuration_inline_create;
});
}
}
export = new SiteInlineActions();
......@@ -10,12 +10,4 @@
*
* The TYPO3 project - inspiring people to share!
*/
// Site configuration backend module FormEngine inline:
// Override inline 'create' and 'details' route to point to SiteInlineAjaxController
require(['jquery'], function($) {
$(function() {
TYPO3.settings.ajaxUrls.record_inline_details = TYPO3.settings.ajaxUrls.site_configuration_inline_details;
TYPO3.settings.ajaxUrls.record_inline_create = TYPO3.settings.ajaxUrls.site_configuration_inline_create;
});
});
define(["require","exports","TYPO3/CMS/Core/DocumentService"],(function(e,i,t){"use strict";return new class{constructor(){t.ready().then(()=>{TYPO3.settings.ajaxUrls.record_inline_details=TYPO3.settings.ajaxUrls.site_configuration_inline_details,TYPO3.settings.ajaxUrls.record_inline_create=TYPO3.settings.ajaxUrls.site_configuration_inline_create})}}}));
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment