Project

General

Profile

Actions

Bug #15643

closed

Drag and Drop slightly broken on Filelist

Added by Stephane Schitter almost 19 years ago. Updated over 18 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2006-02-16
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.0
PHP Version:
4
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

There are two issues with how the ss_dragdrop code was modified from the original code. I report them in one bug report as I believe they are linked.

ISSUE 1: When the ss_dragdrop extension is loaded on top of TYPO3 v4.0beta3, the drag&drop functionality works in the page tree, but breaks on the filelist: the "drop" action does not seem to release the grabbed item. Subsequent mouse moves and clicks will do unexpected results. OK I agree you shouldn't install ss_dragdrop on version 4.0 as it has the functionality built-in, but if we could at least make TYPO3 behave correctly when the double drag&drop functionality are activated at the same time it would be great. However I believe that fixing ISSUE 2 will also resolve this one, so here it comes:

ISSUE 2: Even when ss_dragdrop extension is not installed (so, with a fresh TYPO3 4.0beta3), the right-click menu on the name of a directory in the filelist does not provide the same menu as when clicking on the icon next to the directory name.

(issue imported from #M2588)

Actions #1

Updated by Stephane Schitter almost 19 years ago

Correction: ISSUE 1 will have to remain and is actually not linked to ISSUE 2. It is due to the difference in how ss_dragdrap and TYPO3 4.0 identify the <div> that is actually grabbed by the mouse.

ISSUE 2 exists because the TYPO3 code tries to generate the oncontextmenu as a reference to "pages" table instead of as a reference to how filelist context menu should work.

Actions #2

Updated by Stephane Schitter almost 19 years ago

My final view on this bug is that the first problem cannot be fixed (it's due to design differences between TYPO3 3.8 and later). It should be advertised that ss_dragdrop cannot be used with TYPO3 4.0 anymore or issues will appear.

The second issue can be fixed by editing alt_file_navframe.db, replace around line 119:
$CSM = ' oncontextmenu="'.htmlspecialchars($GLOBALS['TBE_TEMPLATE']->wrapClickMenuOnIcon('','pages',$row
['uid'],0,'&bank='.$this->bank,'',TRUE)).'"';

by

$CSM = ' oncontextmenu="'.htmlspecialchars($GLOBALS['TBE_TEMPLATE']->wrapClickMenuOnIcon('',$row['path']
,'',0,'&bank='.$this->bank,'',TRUE)).'"';
Actions #3

Updated by Ingmar Schlecht almost 19 years ago

Fixed in CVS.

Actions

Also available in: Atom PDF