Ignore:
Timestamp:
05.11.2008 14:07:36 (4 years ago)
Author:
chris
Message:

zms-2.11.1-13

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ZMS/trunk/dtml/javascript/comlib.dtml

    r240 r273  
    5151  function highlight_text(text) { 
    5252     var exp = ""; 
    53      for (var i = 0; i < text.length; i++)  
    54        exp += "(" + text.charAt(i) + "|" + text.toUpperCase().charAt(i) + "|" + text.toLowerCase().charAt(i) + ")"; 
     53     for (var i = 0; i < text.length; i++) { 
     54       var ch = text.charAt(i); 
     55       if ( ch != '*') { 
     56         exp += "(" + ch + "|" + text.toUpperCase().charAt(i) + "|" + text.toLowerCase().charAt(i) + ")"; 
     57       } 
     58     } 
    5559     var regexp = new RegExp( "(" + exp + ")", "g"); 
    5660     var el = document.getElementsByTagName("body")[0]; 
Note: See TracChangeset for help on using the changeset viewer.