54
54
<script type="text/javascript">
59
59
var f = document.forms[0];
60
60
var old_value = f.misspelled_words.options[f.misspelled_words.selectedIndex].text;
61
61
var new_value = f.suggestion.options[f.suggestion.selectedIndex].text;
67
67
var textarea = window.opener.document.{$smarty.post.form_name}.{$smarty.post.field_name};
68
68
textarea.value = replaceWords(textarea.value, old_value, new_value);
71
71
function buildSuggestionBox()
75
75
{foreach key=word item=suggestions from=$spell_check.suggestions}
76
76
suggestions.push(new Option("{$word}", "{section name=i loop=$suggestions}{$suggestions[i]}{if not $smarty.section.i.last},{/if}{/section}"));
79
79
var f = document.forms[0];
80
80
var word = f.misspelled_words.options[f.misspelled_words.selectedIndex].text;