mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-26 11:30:22 +02:00
[ticket/17326] Check for existence of font icon element before use
PHPBB-17326
This commit is contained in:
@@ -291,6 +291,7 @@ function parse_document(container)
|
||||
|
||||
const pageIconFont = document.getElementById('bbcode_font_icon');
|
||||
|
||||
if (pageIconFont) {
|
||||
pageIconFont.addEventListener('keyup', function () {
|
||||
updateIconClass(this.nextElementSibling, this.value);
|
||||
});
|
||||
@@ -298,5 +299,6 @@ function parse_document(container)
|
||||
pageIconFont.addEventListener('blur', function () {
|
||||
updateIconClass(this.nextElementSibling, this.value);
|
||||
});
|
||||
}
|
||||
});
|
||||
})(jQuery);
|
||||
|
Reference in New Issue
Block a user