wp-dtree.js dosyasında şu kodları bulun:
if(this.root.id != node.pid){
if(node.url){
str += '<a id="s' + this._objName + nodeId + '" class="' + ((this.config.useSelection) ? ((node._is ? 'nodeSel' : 'node')) : 'node') + '" href="' + node.url + '"';
if(node.title) str += ' title="' + node.title + '"';
if(node.target) str += ' target="' + node.target + '"';
if(this.config.useStatusText) str += ' onmouseover="window.status=\'' + node.name + '\';return true;" onmouseout="window.status=\'\';return true;" ';
if(this.config.useSelection && ((node._hc && this.config.folderLinks) || !node._hc))
str += ' onclick="javascript: ' + this._objName + '.s(' + nodeId + ');"';
str += '>';
}
else if((!this.config.folderLinks || !node.url) && node._hc && node.pid != this.root.id){
str += '<a href="javascript: ' + this._objName + '.o(' + nodeId + ');"'
if(true || node.title) str += ' title="' + node.title + '"';
str += ' class="node">';
}
str += node.name;
if(node.url || ((!this.config.folderLinks || !node.url) && node._hc)) str += '</a>';
}Şununla değişin:
if(this.root.id != node.pid){
str += '<a id="s' + this._objName + nodeId + '" class="' + ((this.config.useSelection) ? ((node._is ? 'nodeSel' : 'node')) : 'node') + '" href="' + node.url + '"';
if(node.title) str += ' title="' + node.title + '"';
if(node.target) str += ' target="' + node.target + '"';
if(this.config.useStatusText) str += ' onmouseover="window.status=\'' + node.name + '\';return true;" onmouseout="window.status=\'\';return true;" ';
if(this.config.useSelection && ((node._hc && this.config.folderLinks) || !node._hc))
str += ' onclick="javascript: ' + this._objName + '.s(' + nodeId + ');"';
str += '>';
str += node.name;
if(node.url || ((!this.config.folderLinks || !node.url) && node._hc)) str += '</a>';
}
Ancak verdiğim kodlar wp-dtree.js dosyasında olduğu gibi, wp-dtree.min.js uzantılı dosyada da değişmesi gerek. Ben min dosyası çok karışık olduğu için açık olan dosyada yapmanız gereken değişikliği söyledim. min dosyasında aynı işlemleri yapabilirsiniz sanırım.