crossedxd / epr-checker

A tool that performs lexical analysis of EPR bullets.
0 stars 0 forks source link

Formatting doesn't apply on dictionary load #26

Closed crossedxd closed 5 years ago

crossedxd commented 5 years ago

The bold formatting on the abbreviation conflicts is normally deferred until the dictionary file is loaded into memory. However, while the dictionary status message updates after load ("Dictionary loaded successfully." below the output box), the formatting on the conflicts doesn't get updated until there's another change in the input box.

A quick fix for this would just be firing the oninput() event for the input text area immediately after the dictionary load, which should cause the formatting to be updated.

crossedxd commented 5 years ago

Quickest fix should just be: document.getElementById("input").input(); following the creation of the dictionary.

crossedxd commented 5 years ago

A better implementation would be making the current input() function a named function (rather than anonymous like it currently is), and manually call that at the end of loadDictionary().

crossedxd commented 5 years ago

This wasn't fixed in the acronym definitions update, so I'm reopening the issue. However, whit this being a very minor formatting inconsistency, and with there being a lot of potential complexity (due to the lack of Promises in IE11, etc), I'll say that this issue can be considered very low priority at the moment.