Ignore:
Timestamp:
07/25/11 11:12:53 (13 years ago)
Author:
roberto.santosjunior
Message:

Ticket #1820 - Filtro fora do escritório não preserva formatação.r4851

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/expressoMail1_2/js/common_functions.js

    r4843 r4855  
    715715        } 
    716716    } 
     717     
    717718    return strEncode; 
    718719} 
    719720 
    720721function url_decode(str) { 
    721  
    722722        var n, strCode, strDecode = ""; 
    723723        for (n = 0; n < str.length; n++) { 
     
    730730            //    strDecode += str.charAt(n); 
    731731            //} 
     732        } 
     733        return strDecode; 
     734} 
     735 
     736function url_decode_s(str) { 
     737        var n, strCode, strDecode = ""; 
     738        for (n = 0; n < str.length; n++) { 
     739            if (str.charAt(n) == "%") { 
     740                strCode = str.charAt(n + 1) + str.charAt(n + 2); 
     741                strDecode += String.fromCharCode(parseInt(strCode, 16)); 
     742                n += 2; 
     743            } else { 
     744                strDecode += str.charAt(n); 
     745            } 
    732746        } 
    733747        return strDecode; 
Note: See TracChangeset for help on using the changeset viewer.