Skip to content

Commit

Permalink
Merge pull request #10 from liquidlight/1.x-dev
Browse files Browse the repository at this point in the history
[BUGFIX] drag and drop javascript call
  • Loading branch information
Kephson committed Nov 21, 2022
2 parents e14a70a + f6a9d33 commit 86595fa
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions Resources/Public/JavaScript/PasteReferenceDragDrop.js
Original file line number Diff line number Diff line change
Expand Up @@ -258,13 +258,18 @@ define(['jquery', 'jquery-ui/droppable', 'TYPO3/CMS/Backend/LayoutModule/DragDro
});
});
} else {
parameters['data']['tt_content'][contentElementUid] = {
colPos: colPos
};
parameters['cmd']['tt_content'][contentElementUid] = {
move: {
action: 'paste',
target: targetPid,
update: {
colPos: colPos
}
}
}
if (language > -1) {
parameters['data']['tt_content'][contentElementUid]['sys_language_uid'] = language;
parameters['cmd']['tt_content'][contentElementUid]['move']['update']['sys_language_uid'] = language;
}
parameters['cmd']['tt_content'][contentElementUid] = {move: targetPid};
// fire the request, and show a message if it has failed
require(['TYPO3/CMS/Backend/AjaxDataHandler'], function (DataHandler) {
DataHandler.process(parameters).done(function (result) {
Expand Down

0 comments on commit 86595fa

Please sign in to comment.