browser: IE11 - you guess it #452

This commit is contained in:
Sören Weber 2023-02-04 16:48:43 +01:00
parent bf79988c2c
commit 9783b8af0f
No known key found for this signature in database
GPG key ID: BEC6D55545451B6D

View file

@ -1021,7 +1021,9 @@ function initSearch() {
e.addEventListener( 'click', function(){ e.addEventListener( 'click', function(){
inputs.forEach( function( e ){ inputs.forEach( function( e ){
e.value = ''; e.value = '';
e.dispatchEvent( new Event( 'input' ) ); var event = document.createEvent( 'Event' );
event.initEvent( 'input', false, false );
e.dispatchEvent( event );
}); });
unmark(); unmark();
}); });
@ -1039,7 +1041,9 @@ function initSearch() {
var searchValue = sessionStorage.getItem( baseUriFull+'search-value' ); var searchValue = sessionStorage.getItem( baseUriFull+'search-value' );
inputs.forEach( function( e ){ inputs.forEach( function( e ){
e.value = searchValue; e.value = searchValue;
e.dispatchEvent( new Event( 'input' ) ); var event = document.createEvent( 'Event' );
event.initEvent( 'input', false, false );
e.dispatchEvent( event );
}); });
var found = elementContains( searchValue, document.querySelector( '#body-inner' ) ); var found = elementContains( searchValue, document.querySelector( '#body-inner' ) );