Issue Task Closed

#55426Cleanup listframe cut/copy handling

Bernhard Kraft 01/29/14, 12:03 updated 01/07/16, 15:11

Description

The patch which enabled pasting of content elements into empty columns [1] required a fix for reloading the list frame after cut/copy a tt_content element via its clickmenu [2].

The patch [2] introduced a few lines in clickmenu.js which use a relict feature: Ancient times ago the clickmenu was not implemented by AJAX but by reloading the top-frame with some special parameters and Javascript therein generated the clickmenu. Then it was possible to add javascript for reloading the list frame after an element has been cut/copied to the clipboard.

This ancient feature is used again after fix [2] because the clickmenu makes a call to itself for cut/copy.

Eventual solution: Instead of making a call to alt_clickmenu.php for CB cut/copy actions make a call to tce_db.php/tce_file.php. Don’t know if this works but alt_clickmenu shouldn’t be misused for doing a cut/copy of an element into the clipboard. If this is solved the temporary solution in clickmenu.js could get removed again.

[1] https://review.typo3.org/#/c/25532/
2 https://review.typo3.org/#/c/25544/

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.