- Timestamp:
- 04/14/10 16:26:24 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sandbox/expressoMail1_2/corretor_ortografico/spell_checker/spell_checker.php
r2510 r2536 120 120 for($i=0; $i<$tmpNum; $i++) 121 121 { 122 $retVal .= "< span class=\"suggestion\" onclick=\"replaceWord('" . addslashes_custom($id) . "', '" . addslashes(utf8_encode($suggestions[$i])) . "'); return false;\">" . utf8_encode($suggestions[$i]) . " </span></br>";122 $retVal .= "<div class=\"suggestion\" onclick=\"replaceWord('" . addslashes_custom($id) . "', '" . addslashes(utf8_encode($suggestions[$i])) . "'); return false;\">" . utf8_encode($suggestions[$i]) . " </div>"; 123 123 } 124 124 125 125 if($editablePersonalDict) 126 126 { 127 $retVal .= "< span class=\"addtoDictionary\" onclick=\"addWord('" . addslashes_custom($id) . "'); return false;\">Add To Dictionary</span>";127 $retVal .= "<div class=\"addtoDictionary\" onclick=\"addWord('" . addslashes_custom($id) . "'); return false;\">Add To Dictionary</div>"; 128 128 } 129 129 130 130 //Ignore the suggestion - Added by Nathalie 131 $retVal .= "< span class=\"ignore\" onclick=\"replaceWord('" . addslashes_custom($id) . "', '" . addslashes($word) . "'); return false;\"> Ignorar </span>";131 $retVal .= "<div class=\"ignore\" onclick=\"replaceWord('" . addslashes_custom($id) . "', '" . addslashes($word) . "'); return false;\"> Ignorar </div>"; 132 132 133 133 … … 136 136 { 137 137 $retVal .= "Sem sugestão"; 138 $retVal .= "< span class=\"ignore\" onclick=\"replaceWord('" . addslashes_custom($id) . "', '" . addslashes($word) . "'); return false;\"> Ignorar </span>";138 $retVal .= "<div class=\"ignore\" onclick=\"replaceWord('" . addslashes_custom($id) . "', '" . addslashes($word) . "'); return false;\"> Ignorar </div>"; 139 139 } 140 140 … … 207 207 { 208 208 $onClick = "onclick=\"setCurrentObject(" . $varName . "); showSuggestions('" . addslashes($tmpWord) . "', '" . $varName . "_" . $misspelledCount . "_" . addslashes($tmpWord) . "'); return false;\""; 209 $words[$i][$j] = str_replace($tmpWord, "< span " . $onClick . " id=\"" . $varName . "_" . $misspelledCount . "_" . $tmpWord . "\" class=\"highlight\">" . stripslashes($tmpWord) . " </span>", $words[$i][$j]);209 $words[$i][$j] = str_replace($tmpWord, "<div " . $onClick . " id=\"" . $varName . "_" . $misspelledCount . "_" . $tmpWord . "\" class=\"highlight\">" . stripslashes($tmpWord) . " </div>", $words[$i][$j]); 210 210 $misspelledCount++; 211 211 }
Note: See TracChangeset
for help on using the changeset viewer.