Bug #34810

Copy & Pase JavaScript does not always work as expected

Added by Hauke Hain over 1 year ago. Updated over 1 year ago.

Status:Resolved Start date:2012-03-13
Priority:Should have Due date:
Assignee:Jo Hasenau % Done:

0%

Category:- Spent time: -
Target version:-
TYPO3 Version: PHP Version:
Votes: 0

Description

My configuration
  • TYPO3 4.6.4 & gridviewelements 1.3.2
  • Two pages with four columns (Left, Normal, Right, Border), two CEs in each column
  • Page Module: Click on the CE-icon that shows the id, choose copy in the right click menu
Unexpected:
  1. If I just open the menu again and click again on the copy icon (so there in nothing in the clipboard anymore): The copy icons in the column header do not disappear. Only after a pageload or some page switching they are gone. Funny fact: First time I switch to the other page, the other page shows the copy icons too.
  2. Clicking on the other page: There are no copy icons in the column header. They appear only after a page reload or after some switching between the pages.

Associated revisions

Revision 4321
Added by Jo Hasenau over 1 year ago

Fix for Issue #34810

History

Updated by Jo Hasenau over 1 year ago

  • Status changed from New to Under Review
  • Assignee set to Jo Hasenau

Updated by Jo Hasenau over 1 year ago

  • Status changed from Under Review to Accepted

Actually it's even worse. The desired behaviour would be:

Click on "copy" 
  check if element is already in the Clipboard
  Yes => Check if the mode is set to "copy" as well
         Yes => Remove the icons completely
         No => Change the icons to "copy" 
  No => Change the icons to "copy" 

Click on "cut" 
  check if element is already in the Clipboard
  Yes => Check if the mode is set to "move" as well
         Yes => Remove the icons completely
         No => Change the icons to "move" 
  No => Change the icons to "move" 

When the item is cut, there should be a paste into icon only, but no paste reference into icon.
When the item is copied, there should be a paste into icon and a paste reference into icon.
When the item is pasted after cutting it, the icons have to be removed after the paste action.

Currently the "move" mode doesn't work at all, the "copy" mode will just set the icons but never remove them.
A switch to another page with items in the clipboard will work after a reload only.

We are already working on a fix that will be published tonight.

Updated by Jo Hasenau over 1 year ago

  • Status changed from Accepted to Resolved

Fixed in current trunk

Also available in: Atom PDF