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-by: Markus Klein's avatarMarkus Klein <>
Tested-by: Markus Klein's avatarMarkus Klein <>
Reviewed-by: Benjamin Kott's avatarBenjamin Kott <>
Tested-by: Benjamin Kott's avatarBenjamin Kott <>
parent 33714fee
......@@ -194,8 +194,13 @@ class NewRecordController
'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($\'url\'), $\'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