diff --git a/assets/js/spellchecker.js b/assets/js/spellchecker.js index dff8ed3fa..02e0401b6 100644 --- a/assets/js/spellchecker.js +++ b/assets/js/spellchecker.js @@ -3,7 +3,7 @@ var spellers = {}, spellerData = {}; var currentSpellCheckerRequest; -/* exported getSpellers, spellerData */ +/* exported getSpellers, spellerData, populatePrimarySpellCheckerList */ /* global config, modeEnabled, persistChoices, readCache, ajaxSend, ajaxComplete, filterLangPairList, allowedLang, cache, localizeInterface, getLangByCode, restoreChoices, callApy */ /* global ENTER_KEY_CODE */ @@ -200,15 +200,25 @@ function check() { } $('.spellError').each(function () { var currentTokenId = this.id; - $(this).popover({ - animation: false, - placement: 'bottom', - trigger: 'manual', - html: true, - content: content[currentTokenId] - }); + if(content[currentTokenId].indexOf('spellCheckerListItem') !== -1) { + $(this).popover({ + animation: false, + placement: 'bottom', + trigger: 'manual', + html: true, + content: content[currentTokenId] + }); + } + else { + $(this).popover({ + animation: false, + placement: 'bottom', + trigger: 'manual', + html: true, + content: '