Changeset 595 for trunk/plugins


Ignore:
Timestamp:
10/04/06 13:14:50 (13 years ago)
Author:
ray
Message:

Ticket #862 Adding target to a link on an image doesn't work on creation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/plugins/Linker/linker.js

    r583 r595  
    250250      for(var i = 0; i < anchors.length; i++) 
    251251      { 
    252         var a = anchors[i]; 
    253         if(a.href == tmp) 
     252        var anchor = anchors[i]; 
     253        if(anchor.href == tmp) 
    254254        { 
    255255          // Found one. 
     256          if (!a) a = anchor; 
    256257          for(var j in atr) 
    257258          { 
    258             a.setAttribute(j, atr[j]); 
     259            anchor.setAttribute(j, atr[j]); 
    259260          } 
    260261        } 
Note: See TracChangeset for help on using the changeset viewer.