mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
[ticket/17326] Check for existence of font icon element before use
PHPBB-17326
This commit is contained in:
parent
220b655150
commit
bf15d1ea42
1 changed files with 8 additions and 6 deletions
|
@ -291,12 +291,14 @@ function parse_document(container)
|
||||||
|
|
||||||
const pageIconFont = document.getElementById('bbcode_font_icon');
|
const pageIconFont = document.getElementById('bbcode_font_icon');
|
||||||
|
|
||||||
pageIconFont.addEventListener('keyup', function() {
|
if (pageIconFont) {
|
||||||
updateIconClass(this.nextElementSibling, this.value);
|
pageIconFont.addEventListener('keyup', function () {
|
||||||
});
|
updateIconClass(this.nextElementSibling, this.value);
|
||||||
|
});
|
||||||
|
|
||||||
pageIconFont.addEventListener('blur', function() {
|
pageIconFont.addEventListener('blur', function () {
|
||||||
updateIconClass(this.nextElementSibling, this.value);
|
updateIconClass(this.nextElementSibling, this.value);
|
||||||
});
|
});
|
||||||
|
}
|
||||||
});
|
});
|
||||||
})(jQuery);
|
})(jQuery);
|
||||||
|
|
Loading…
Add table
Reference in a new issue