Ignore:
Timestamp:
04/14/10 09:34:26 (14 years ago)
Author:
nathalie.silva
Message:

Ticket #891 - alteração pro IE - Nathalie

Location:
sandbox/expressoMail1_2/corretor_ortografico/spell_checker
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • sandbox/expressoMail1_2/corretor_ortografico/spell_checker/css/spell_checker.css

    r2510 r2512  
    3535} 
    3636 
    37 a:active 
    38 { 
    39 outline: none; 
    40 } 
    41  
    42 a:focus 
    43 { 
    44 -moz-outline-style: none; 
    45 } 
    4637 
    4738 
  • sandbox/expressoMail1_2/corretor_ortografico/spell_checker/js/spell_checker.js

    r2510 r2512  
    349349 
    350350 
    351  
    352  
    353 function focusDiv(){ 
    354     alert("focus"); 
    355     var ifr= currObj.objToCheck; 
    356         if(ifr.contentWindow) 
     351/************************************************************* 
     352 * showMenu 
     353 * 
     354 * This function is associated with the click event 
     355 *  of all the tags span with correctd_word class. 
     356 * 
     357 *************************************************************/ 
     358function showMenu(){ 
     359    alert("showMenu"); 
     360    var browser = checkBrowser(); 
     361    if (browser == "ie"){ 
     362         var ifr= currObj.objToCheck; 
     363         if(!e){var e = ifr.contentWindow.event;} 
     364            if(!e.target){e.target = e.srcElement;} 
     365 
     366            if(ifr.contentWindow) 
    357367            ifr=ifr.contentWindow.document; 
    358368        else 
    359369            ifr=ifr.contentDocument; 
    360  
    361     ifr.getElementById("suggestion_box").outline = 0; 
    362     ifr.getElementById(spellingSuggestionsDiv.id).style.display = 'none'; 
    363     ifr.getElementById(spellingSuggestionsDiv.id)._moz_resizing = false; 
    364  
    365  
    366     return false; 
    367 } 
    368  
    369  
    370  
    371 /************************************************************* 
    372  * showMenu 
    373  * 
    374  * This function is associated with the click event 
    375  *  of all the tags span with correctd_word class. 
    376  * 
    377  *************************************************************/ 
    378 function showMenu(){ 
    379     var evento = this.onclick.toString(); 
     370        var evento = ifr.getElementById(e.target.id).onclick.toString(); 
     371    } 
     372    else { 
     373        var evento = this.onclick.toString(); 
     374    } 
     375 
    380376    evento = evento.replace("function onclick(event) {", ""); 
    381377    evento = evento.replace("}", ""); 
    382378    var array_func = evento.split(";"); 
    383379    eval(array_func[0]); 
    384     eval(array_func[1]); 
     380   eval(array_func[1]); 
    385381    return false;    
     382     
     383 
     384     
     385   
     386// 
    386387} 
    387388 
     
    517518                    ifr.getElementsByTagName("span")[i].addEventListener("click", showMenu , true); 
    518519                else 
    519                     ifr.getElementsByTagName("span")[i].attachEvent("click", showMenu ); 
     520                    ifr.getElementsByTagName("span")[i].attachEvent("onclick", showMenu ); 
    520521 
    521522            } 
     
    881882                    ifr.getElementsByTagName("span")[i].addEventListener("click", replaceMenu , true); 
    882883                else 
    883                     ifr.getElementsByTagName("span")[i].attachEvent("click", replaceMenu); 
     884                    ifr.getElementsByTagName("span")[i].attachEvent("onclick", replaceMenu); 
    884885                     
    885886 
     
    912913function showSuggestions(word, id) 
    913914{ 
    914          
     915        alert("showSuggestions"); 
    915916        //adicionado nathalie 
    916917         var ifr= currObj.objToCheck; 
     
    961962         
    962963         
    963         spellingSuggestionsDiv.addEventListener("active", focusDiv , true); //Adicionado Nathalie 
    964  
     964       
    965965        
    966966         
Note: See TracChangeset for help on using the changeset viewer.