Project

General

Profile

Actions

Bug #17669

closed

Drag&Drop icon should only be displayed when more than 1 IRRE record

Added by Georg Ringer over 16 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Could have
Assignee:
-
Category:
-
Target version:
-
Start date:
2007-10-11
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.1
PHP Version:
5.0
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

The drag&drop icon appears also if there is just 1 record (in contrast to the up/down icons which work correctly)

a fix could work like this but has the problem that it only works after saving once, maybe Oliver you can do better! ;)
// Drag&Drop Sorting: Sortable handler for script.aculo.us
if ($permsEdit && $enableManualSorting && $config['appearance']['useSortable'] && strpos($config['appearance']['hide'],'sort')===false) {
$style = ($config['inline']['first'] == $config['inline']['last']) ? ' style="visibility: hidden;"' : '';
$cells[] = '<img'.t3lib_iconWorks::skinImg($this->backPath,'gfx/move.gif','width="16" height="16" hspace="2"'.$style).' title="'.$GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.php:labels.move',1).'" alt="" style="cursor: move;" class="sortableHandle" />';
}

(issue imported from #M6498)

Actions #1

Updated by Oliver Hader over 16 years ago

This has to be done like for the "create new records button" when the maxitems limit is reached. So, the button is always there (rendered by php), but get's hidden or displayed by using CSS and JavaScript depending on the number of child records available.

Actions #2

Updated by Georg Ringer over 16 years ago

Yes absolutly. my code is a bit wrong I discovered later but the IRRE god should need just 1min I guess ;)

Actions #3

Updated by Georg Ringer almost 13 years ago

  • Status changed from New to Resolved
  • Target version deleted (0)
Actions #4

Updated by Benni Mack over 5 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF