Commit d964d76f authored by Andreas Fernandez's avatar Andreas Fernandez Committed by Benjamin Kott
Browse files

[FOLLOWUP][FEATURE] Load new content element wizard via modal instead of new page

Ensure that jQuery is available in NewRecordController.

Resolves: #75676
Releases: master
Change-Id: Idf437554fb136e8e4ae18ce0d229d6b3ed8a58e4
Reviewed-on: https://review.typo3.org/54587


Reviewed-by: Markus Klein's avatarMarkus Klein <markus.klein@typo3.org>
Tested-by: Markus Klein's avatarMarkus Klein <markus.klein@typo3.org>
Reviewed-by: Benjamin Kott's avatarBenjamin Kott <benjamin.kott@outlook.com>
Tested-by: Benjamin Kott's avatarBenjamin Kott <benjamin.kott@outlook.com>
parent 33714fee
......@@ -194,8 +194,13 @@ class NewRecordController
$this->moduleTemplate->getPageRenderer()->loadRequireJsModule(
'TYPO3/CMS/Backend/Wizard/NewContentElement',
'function(NewContentElement) {
$(".t3js-toggle-new-content-element-wizard").click(function() {
NewContentElement.wizard($(this).data("url"), $(this).data("title"));
require([\'jquery\'], function($) {
$(function() {
$(\'.t3js-toggle-new-content-element-wizard\').click(function() {
var $me = $(this);
NewContentElement.wizard($me.data(\'url\'), $me.data(\'title\'));
});
});
});
}'
);
......
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