- Timestamp:
- 04/14/10 09:34:26 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sandbox/expressoMail1_2/corretor_ortografico/spell_checker/js/spell_checker.js
r2510 r2512 349 349 350 350 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 *************************************************************/ 358 function 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) 357 367 ifr=ifr.contentWindow.document; 358 368 else 359 369 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 380 376 evento = evento.replace("function onclick(event) {", ""); 381 377 evento = evento.replace("}", ""); 382 378 var array_func = evento.split(";"); 383 379 eval(array_func[0]); 384 380 eval(array_func[1]); 385 381 return false; 382 383 384 385 386 // 386 387 } 387 388 … … 517 518 ifr.getElementsByTagName("span")[i].addEventListener("click", showMenu , true); 518 519 else 519 ifr.getElementsByTagName("span")[i].attachEvent(" click", showMenu );520 ifr.getElementsByTagName("span")[i].attachEvent("onclick", showMenu ); 520 521 521 522 } … … 881 882 ifr.getElementsByTagName("span")[i].addEventListener("click", replaceMenu , true); 882 883 else 883 ifr.getElementsByTagName("span")[i].attachEvent(" click", replaceMenu);884 ifr.getElementsByTagName("span")[i].attachEvent("onclick", replaceMenu); 884 885 885 886 … … 912 913 function showSuggestions(word, id) 913 914 { 914 915 alert("showSuggestions"); 915 916 //adicionado nathalie 916 917 var ifr= currObj.objToCheck; … … 961 962 962 963 963 spellingSuggestionsDiv.addEventListener("active", focusDiv , true); //Adicionado Nathalie 964 964 965 965 966 966
Note: See TracChangeset
for help on using the changeset viewer.