Skip to content
Snippets Groups Projects
Commit 2a05c32c authored by Andreas Fernandez's avatar Andreas Fernandez
Browse files

[BUGFIX] Drop obsolete `table-wizard` module

The FormEngine JavaScript module `table-wizard` became obsolete with
ticket #95036 and was forgotten to be removed, which is now done.

Resolves: #100356
Related: #95036
Releases: main, 11.5
Change-Id: I2f517a29ec5298efb4ddc7149f903b9837338037
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/78329


Tested-by: default avatarAndreas Fernandez <a.fernandez@scripting-base.de>
Reviewed-by: default avatarAndreas Fernandez <a.fernandez@scripting-base.de>
Tested-by: default avatarcore-ci <typo3@b13.com>
parent d344bc25
Branches
Tags
No related merge requests found
/*
* 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');
import FormEngine = require('TYPO3/CMS/Backend/FormEngine');
/**
* Handles the "Table wizard" field control
*/
class TableWizard {
private controlElement: HTMLElement = null;
constructor(controlElementId: string) {
DocumentService.ready().then((): void => {
this.controlElement = <HTMLElement>document.querySelector(controlElementId);
this.controlElement.addEventListener('click', this.registerClickHandler);
});
}
/**
* @param {Event} e
*/
private registerClickHandler = (e: Event): void => {
e.preventDefault();
FormEngine.preventFollowLinkIfNotSaved(this.controlElement.getAttribute('href'));
}
}
export = TableWizard;
/*
* 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!
*/
define(["require","exports","TYPO3/CMS/Core/DocumentService","TYPO3/CMS/Backend/FormEngine"],(function(e,t,r,n){"use strict";return class{constructor(e){this.controlElement=null,this.registerClickHandler=e=>{e.preventDefault(),n.preventFollowLinkIfNotSaved(this.controlElement.getAttribute("href"))},r.ready().then(()=>{this.controlElement=document.querySelector(e),this.controlElement.addEventListener("click",this.registerClickHandler)})}}}));
\ No newline at end of file
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