Ignore:
Timestamp:
Feb 19, 2014, 6:13:47 AM (10 years ago)
Author:
rvelices
Message:

menutree optims (remove unused css + move some tpl to php because faster)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/rv_menutree/trunk/js/rvtree.js

    r7956 r27411  
    9494                        {
    9595                                // This LI has UL's in it, so it's a +/- node
    96                                 if ( !XElement.hasClass(item, RVTree.options.nodeOpenClass) )
    97                                         XElement.addClass(item, RVTree.options.nodeClosedClass);
    98 
    9996                                // If it's just text, make the text work as the link also
    100                                 if (item.firstChild.nodeName=="#text")
     97                                if (item.firstChild.nodeType==3)
    10198                                {
    10299                                        t = t+item.firstChild.nodeValue;
     
    127124                        if (isRoot && RVTree.options.IEVersion && RVTree.options.IEVersion < 8)
    128125                                item.style.marginLeft="-16px"; // thats IE6,IE7 ; IE8 seems more compliant
    129                         if (s)
    130                         {
    131                                 s.appendChild(document.createTextNode(t));
    132                                 item.insertBefore(s,item.firstChild);
    133                         }
     126                        s.appendChild(document.createTextNode(t));
     127                        item.insertBefore(s,item.firstChild);
    134128                }
    135129                ul.style.marginLeft = 0;
Note: See TracChangeset for help on using the changeset viewer.