Changes between Version 5 and Version 6 of Development/PlugIns/JavaScript


Ignore:
Timestamp:
Nov 29, 2006 11:06:51 PM (13 years ago)
Author:
timothy
Comment:

Changed the variable name from final to finalHTML since final is a reserved JavaScript word.

Legend:

Unmodified
Added
Removed
Modified
  • Development/PlugIns/JavaScript

    v5 v6  
    5656 
    5757        var html = message.bodyAsHTML(); 
    58         var final = html; 
     58        var finalHTML = html; 
    5959        var linkRegex = new RegExp( '<a href="([^"]+)">([^<]+)<\/a>', 'gim' ); 
    6060        var result; 
     
    9393                } 
    9494 
    95                 if( title ) final = final.replace( result[0], '<a href="' + url + '" title="' + url + '">' + title + '</a>' ); 
     95                if( title ) finalHTML = finalHTML.replace( result[0], '<a href="' + url + '" title="' + url + '">' + title + '</a>' ); 
    9696        } 
    9797 
    98         message.setBodyAsHTML( final ); 
     98        message.setBodyAsHTML( finalHTML ); 
    9999} 
    100100}}}