Project

General

Profile

Bug #15707 » bug_002677.patch

Administrator Admin, 2007-02-07 17:18

View differences:

typo3/alt_db_navframe.php (working copy)
// Use template rendering only if this is a non-AJAX call:
if (!$this->ajax) {
// Setting highlight mode:
$this->doHighlight = !$BE_USER->getTSConfigVal('options.pageTree.disableTitleHighlight') && $BE_USER->workspace===0;
$this->doHighlight = !$BE_USER->getTSConfigVal('options.pageTree.disableTitleHighlight');
// If highlighting is active, define the CSS class for the active item depending on the workspace
if ($this->doHighlight) {
if ($BE_USER->workspace === 0) $hlClass = 'active';
else $hlClass = 'active active-ws wsver'.$BE_USER->workspace;
}
// Create template object:
$this->doc = t3lib_div::makeInstance('template');
......
($this->currentSubScript?'top.currentSubScript=unescape("'.rawurlencode($this->currentSubScript).'");':'').'
// setting prefs for pagetree and drag & drop
Tree.thisScript = "'.$this->pagetree->thisScript.'";
'.($this->doHighlight ? 'Tree.highlightClass = "'.$hlClass.'";' : '').'
DragDrop.changeURL = "'.$this->backPath.'alt_clickmenu.php";
DragDrop.backPath = "'.t3lib_div::shortMD5(''.'|'.$GLOBALS['TYPO3_CONF_VARS']['SYS']['encryptionKey']).'";
DragDrop.table = "pages";
typo3/tree.js (working copy)
thisScript: null,
frameSetModule: null,
activateDragDrop: true,
highlightClass: 'active',
// reloads a part of the page tree (useful when "expand" / "collapse")
load: function(params, isExpand, obj) {
......
// selects the activated item again, in case it collapsed and got expanded again
reSelectActiveItem: function() {
obj = $(top.fsMod.navFrameHighlightedID[this.frameSetModule]);
if (obj) Element.addClassName(obj, 'active');
if (obj) Element.addClassName(obj, this.highlightClass);
},
// highlights an active list item in the page tree and registers it to the top-frame
......
// Remove all items that are already highlighted
obj = $(top.fsMod.navFrameHighlightedID[frameSetModule]);
if (obj) Element.removeClassName(obj, 'active');
if (obj) Element.removeClassName(obj, this.highlightClass);
// Set the new item
top.fsMod.navFrameHighlightedID[frameSetModule] = highlightID;
if ($(highlightID)) Element.addClassName(highlightID, 'active');
if ($(highlightID)) Element.addClassName(highlightID, this.highlightClass);
}
}
(2-2/2)