From: Laurent Mazet Date: Wed, 22 Jul 2020 05:50:35 +0000 (+0200) Subject: fix enable-spell-checker button state X-Git-Url: https://secure.softndesign.org/git/?a=commitdiff_plain;h=0be339cf2d71ed596492ac803628792634b31e77;p=trivabble.git fix enable-spell-checker button state --- diff --git a/public/trivabble.js b/public/trivabble.js index 92199b8..f81d82f 100644 --- a/public/trivabble.js +++ b/public/trivabble.js @@ -172,6 +172,7 @@ if ((file.readyState === 4) && (file.status == "200")) { try { dictionary = file.responseText.split("\n"); + document.getElementById("enable-spell-checker").style.display = "none"; document.getElementById("check-spelling").style.display = "block"; } catch (e) { myAlert(_("Incorrect dictionary file."));