Skip to content

Commit

Permalink
[TASK] Use existing js listeners in page module
Browse files Browse the repository at this point in the history
Resolves: #81466
Releases: master, 8.7
Change-Id: Icf9dace3b00667e4d6a17cc5d3559782beffb725
Reviewed-on: https://review.typo3.org/53265
Reviewed-by: Mathias Schreiber <mathias.schreiber@typo3.com>
Tested-by: Mathias Schreiber <mathias.schreiber@typo3.com>
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
  • Loading branch information
dawind authored and wouter90 committed Feb 7, 2018
1 parent 526f179 commit 20678eb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -92,7 +92,7 @@ define(['jquery', 'jquery-ui/droppable'], function($) {

$(DragDrop.dropZoneIdentifier).each(function() {
var $me = $(this);
if ($me.parent().find('.icon-actions-add').length) {
if ($me.parent().find('.t3js-toggle-new-content-element-wizard').length) {
$me.addClass(DragDrop.validDropZoneClass);
} else {
$me.closest(DragDrop.contentIdentifier).find('> ' + DragDrop.addContentIdentifier + ', > > ' + DragDrop.addContentIdentifier).show();
Expand Down
Expand Up @@ -46,7 +46,7 @@ define(['jquery',
*/
Paste.activatePasteIcons = function() {
$('.t3-page-ce-wrapper-new-ce').each(function() {
if (!$(this).find('.icon-actions-add').length) {
if (!$(this).find('.t3js-toggle-new-content-element-wizard').length) {
return true;
}
$('.t3js-page-lang-column .t3-page-ce > .t3-page-ce').removeClass('t3js-page-ce');
Expand Down

0 comments on commit 20678eb

Please sign in to comment.