fix enable-spell-checker button state
authorLaurent Mazet <mazet@softndesign.org>
Wed, 22 Jul 2020 05:50:35 +0000 (07:50 +0200)
committerLaurent Mazet <mazet@softndesign.org>
Wed, 22 Jul 2020 05:50:35 +0000 (07:50 +0200)
public/trivabble.js

index 92199b8eee76a27b30e4efc17ed0727d19a52494..f81d82fa5836b92ac1fd616516bc8ac5a1a46100 100644 (file)
             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."));