Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Minor fixes.
  • Loading branch information
JPJPJPOPOP committed Jan 21, 2018
commit 810ce86c427a4cb51f7c1a8cf6c7646719bbe6e6
6 changes: 3 additions & 3 deletions assets/js/spellchecker.js
Original file line number Diff line number Diff line change
Expand Up @@ -224,12 +224,12 @@ function check() {
}
$('#spellCheckerInput').html($('#spellCheckerInput').html() + ' <span class="spellError" id=' +
splitWords[originalWordsIndex] + '>' + splitWords[originalWordsIndex] + '</span>');
content[splitWords[originalWordsIndex]] = '<div class="list-group">';
content[splitWords[originalWordsIndex]] = '<div class="spellCheckerList">';
for(var sugg = 0; sugg < data[tokenIndex].sugg.length; sugg++) {
content[splitWords[originalWordsIndex]] += '<a href="#" class="list-group-item">' +
content[splitWords[originalWordsIndex]] += '<a href="#" class="spellCheckerListItem">' +
data[tokenIndex].sugg[sugg][0] + '</a>';
content[splitWords[originalWordsIndex]] += '</div>';
}
content[splitWords[originalWordsIndex]] += '</div>';
$('.spellError').each(function () {
var currentTokenId = this.id;
$(this).popover({
Expand Down
2 changes: 1 addition & 1 deletion index.html.in
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@
<li><a href="#translation" id="translationTarget" data-mode="translation" data-text="Translation" class="hide">Translation</a></li>
<li><a href="#analyzation" data-mode="analyzation" data-text="Morphological_Analysis" class="hide">Morphological analysis</a></li>
<li><a href="#generation" data-mode="generation" data-text="Morphological_Generation" class="hide">Morphological generation</a></li>
<li><a href="#spellchecking" data-mode="spellchecking" data-text="Spell_Checking">Spell checking</a></li>
<li><a href="#spellchecking" data-mode="spellchecking" data-text="Spell_Checking" class="hide">Spell checking</a></li>
<li><a href="#sandbox" data-mode="sandbox" data-text="APy_Sandbox" class="hide">APy sandbox</a></li>
</ul>
</div>
Expand Down