Changeset 582


Ignore:
Timestamp:
09/20/06 21:36:47 (8 years ago)
Author:
ray
Message:

Linker update:

  • update the selection after inserting link (See ticket #839)
  • fixed a bug that prevented linking over more than one node correctly
  • fixed a bug that prevented hiding of anchor table if no anchor in document
  • added visited pseudo class to tree nodes
Location:
trunk/plugins/Linker
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/plugins/Linker/dTree/dtree.css

    r1 r582  
    1515  vertical-align: middle; 
    1616} 
    17 .dtree a { 
     17.dtree a,.dtree a:visited { 
    1818  color: #333; 
    1919  text-decoration: none; 
  • trunk/plugins/Linker/linker.js

    r581 r582  
    214214          } 
    215215          p.removeChild(a); 
     216          linker.editor.updateToolbar(); 
     217          return; 
    216218        } 
    217219      } 
     
    252254        { 
    253255          // Found one. 
    254           for(var i in atr) 
     256          for(var j in atr) 
    255257          { 
    256             a.setAttribute(i, atr[i]); 
     258            a.setAttribute(j, atr[j]); 
    257259          } 
    258260        } 
    259261      } 
    260262    } 
     263    linker.editor.selectNodeContents(a); 
     264        linker.editor.updateToolbar(); 
    261265  }; 
    262266 
     
    520524 
    521525  //if no anchors found completely hide Anchor-Link 
    522   if(anchor.childNodes.length==0) { 
     526  if(anchor.length==0) { 
    523527    this.dialog.getElementById('anchorfieldset').style.display = "none"; 
    524528  } 
Note: See TracChangeset for help on using the changeset viewer.