From: Laurent Mazet Date: Wed, 10 Jun 2020 05:43:45 +0000 (+0200) Subject: change alert messages to chat messages for spelling cheker X-Git-Url: https://secure.softndesign.org/git/?a=commitdiff_plain;h=aef044cdb17b180d0b5a4b8df2d33a653e4eea98;p=trivabble.git change alert messages to chat messages for spelling cheker --- diff --git a/public/trivabble.js b/public/trivabble.js index e2405c3..c614ab1 100644 --- a/public/trivabble.js +++ b/public/trivabble.js @@ -1563,9 +1563,10 @@ /* Advice on erroneous spelling */ if (badWords.length > 0) { - myAlert(format(_("Incorrect speeling for {0} from {1}"), badWords, words)); + const msg = chatMessage("", format(_("Incorrect speeling for {0} from {1}"), badWords, words)); + msg.classList.add("error"); } else if (words.length > 0) { - myAlert(format(_("All words are correct: {0}"), words)); + chatMessage("", format(_("All words are correct: {0}"), words)); } else { myAlert(_("No new word found")); }