From aef044cdb17b180d0b5a4b8df2d33a653e4eea98 Mon Sep 17 00:00:00 2001 From: Laurent Mazet Date: Wed, 10 Jun 2020 07:43:45 +0200 Subject: [PATCH] change alert messages to chat messages for spelling cheker --- public/trivabble.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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")); } -- 2.30.2