Project

General

Profile

Bug #24986 » 17520_v2.diff

Administrator Admin, 2011-02-23 00:25

View differences:

t3lib/js/extjs/components/pagetree/javascript/nodeui.js (Arbeitskopie)
*/
getDDHandles: function() {
var ddHandles = [this.iconNode, this.textNode, this.elNode];
var handlesIndex = ddHandles.length;
var textNode = Ext.get(this.textNode);
for (var i = 0; i < textNode.dom.childNodes.length; ++i) {
if (textNode.dom.childNodes[i].nodeName === 'SPAN') {
ddHandles[3] = textNode.dom.childNodes[i];
ddHandles[handlesIndex++] = textNode.dom.childNodes[i];
if (textNode.dom.childNodes[i].childNodes) {
ddHandles[handlesIndex++] = textNode.dom.childNodes[i].childNodes[0];
}
}
}
t3lib/tree/pagetree/class.t3lib_tree_pagetree_commands.php (Arbeitskopie)
$subNode->setCls($record['_CSSCLASS']);
$subNode->setType('pages');
$qtip = t3lib_BEfunc::titleAttribForPages($record, '', FALSE);
$subNode->setQTip(str_replace(' - ', '<br />', htmlspecialchars($qtip)));
$subNode->setId($record['uid']);
$subNode->setMountPoint($mountPoint);
$subNode->setWorkspaceId(($record['_ORIG_uid'] ? $record['_ORIG_uid'] : $record['uid']));
......
$suffix = ($domain !== '' ? ' [' . $domain . ']' : '');
}
$prefix = ($addIdAsPrefix ? '[' . $record['uid'] . '] ' : '');
$qtip = str_replace(' - ', '<br />', htmlspecialchars(
t3lib_BEfunc::titleAttribForPages($record, '', FALSE))
);
$prefix = '';
$lockInfo = t3lib_BEfunc::isRecordLocked('pages', $record['uid']);
if (is_array($lockInfo)) {
$qtip .= '<br />' . htmlspecialchars($lockInfo['msg']);
$prefix .= t3lib_iconWorks::getSpriteIcon(
'status-warning-in-use',
array(
'class' => 'typo3-pagetree-status'
)
);
}
$prefix .= htmlspecialchars($addIdAsPrefix ? '[' . $record['uid'] . '] ' : '');
$subNode->setEditableText($text);
$subNode->setText(
htmlspecialchars($visibleText),
$field,
htmlspecialchars($prefix),
$prefix,
htmlspecialchars($suffix)
);
$subNode->setQTip($qtip);
if ($record['uid'] !== 0) {
$spriteIconCode = t3lib_iconWorks::getSpriteIconForRecord('pages', $record);
} else {
typo3/sysext/t3skin/stylesheets/structure/element_pagetree.css (Arbeitskopie)
padding-top: 15px;
}
.x-tree-node a .typo3-pagetree-status,
.x-dd-drag-ghost a .typo3-pagetree-status {
padding: 0;
margin: 0 3px 0 0;
}
/**
*
* section drag and drop
(2-2/2)