mirror of
https://github.com/internetee/registry.git
synced 2025-06-08 21:54:48 +02:00
Previously `let of` loop was used, which isn't supported in IE11. It seems it just fails when there is some JS syntax error (doesn't matter where exactly) and dataType: 'json' has no effect. Closes #982
14 lines
355 B
JavaScript
14 lines
355 B
JavaScript
(function () {
|
|
function disableSpellCheck() {
|
|
let selector = 'input[type=text], textarea';
|
|
let textFields = document.querySelectorAll(selector);
|
|
|
|
textFields.forEach(
|
|
function (field, _currentIndex, _listObj) {
|
|
field.spellcheck = false;
|
|
}
|
|
);
|
|
}
|
|
|
|
disableSpellCheck();
|
|
})();
|