Project

General

Profile

Feature #17150 » Trees.wrap_v2.diff

Administrator Admin, 2007-03-30 16:57

View differences:

class.webpagetree.php Fri Mar 30 17:56:25 2007
if($v['isLast']) { $classAttr .= ($classAttr) ? ' last' : 'last'; }
$itemHTML .='
<li id="'.$idAttr.'"'.($classAttr ? ' class="'.$classAttr.'"' : '').'>'.
<li id="'.$idAttr.'"'.($classAttr ? ' class="'.$classAttr.'"' : '').'><div>'.
$v['HTML'].
$this->wrapTitle($this->getTitleStr($v['row'],$titleLen),$v['row'],$v['bank'])."\n";
$itemHTML .= '</div>';
if(!$v['hasSub']) { $itemHTML .= '</li>'; }
// we have to remember if this is the last one
-- class.filelistfoldertree.php.old Fri Mar 30 17:53:30 2007
++ class.filelistfoldertree.php Fri Mar 30 17:56:24 2007
......
if($v['isLast']) { $classAttr = ($classAttr) ? ' last' : 'last'; }
$itemHTML .='
<li id="'.$idAttr.'"'.($classAttr ? ' class="'.$classAttr.'"' : '').'>'.
<li id="'.$idAttr.'"'.($classAttr ? ' class="'.$classAttr.'"' : '').'><div>'.
$v['HTML'].
$this->wrapTitle($this->getTitleStr($v['row'],$titleLen),$v['row'],$v['bank']);
$itemHTML .= '</div>';
if(!$v['hasSub']) { $itemHTML .= "</li>\n"; }
// we have to remember if this is the last one
-- tree.js.old Fri Mar 30 17:53:35 2007
++ tree.js Fri Mar 30 17:53:59 2007
......
*
* This copyright notice MUST APPEAR in all copies of this script
*
* TYPO3 SVN ID: $Id: tree.js 2227 2007-03-29 22:36:10Z mundaun $
* TYPO3 SVN ID: $Id: tree.js 2200 2007-03-26 16:37:15Z ingmars $
*
***************************************************************/
// Call this function, refresh_nav(), from another script in the backend if you want
// to refresh the navigation frame (eg. after having changed a page title or moved pages etc.)
// See t3lib_BEfunc::getSetUpdateSignal()
// please use the function in the "Tree" object for future implementations
function refresh_nav() { window.setTimeout('Tree.refresh();',0); }
// Deprecated! Another JS function, for highlighting rows in the page tree, kept alive for backwards
// compatibility. Please use the function in the "Tree" object for future implementations.
function hilight_row(frameSetModule, highLightID) { Tree.highlightActiveItem(frameSetModule, highlightID); }
var Tree = {
thisScript: null,
......
// immediately collapse the subtree and change the plus to a minus when collapsing
// without waiting for the response
if (!isExpand) {
var ul = obj.parentNode.getElementsByTagName('ul')[0];
obj.parentNode.removeChild(ul); // no remove() directly because of IE 5.5
var pm = Selector.findChildElements(obj.parentNode, ['.pm'])[0]; // Getting pm object by CSS selector (because document.getElementsByClassName() doesn't seem to work on Konqueror)
var ul = obj.parentNode.parentNode.getElementsByTagName('ul')[0];
obj.parentNode.parentNode.removeChild(ul); // no remove() directly because of IE 5.5
var pm = Selector.findChildElements(obj.parentNode.parentNode, ['.pm'])[0]; // Getting pm object by CSS selector (because document.getElementsByClassName() doesn't seem to work on Konqueror)
if (pm) {
pm.onclick = null;
Element.cleanWhitespace(pm);
......
if (!status) return this.refresh();
// the parent node needs to be overwritten, not the object
$(obj.parentNode).replace(xhr.responseText);
$(obj.parentNode.parentNode).replace(xhr.responseText);
this.registerDragDropHandlers();
this.reSelectActiveItem();
}.bind(this)
(2-2/2)