Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d36ea685 authored by Ronak Patel's avatar Ronak Patel
Browse files

added timeout

parent 6f3a5173
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -4,12 +4,12 @@ $(document).ready(function() {
	$('#header-menu-unified-search .header-menu__content').append('<div id="search-help-text">' + searchHelpText + '</div>')
})
$(document).on('keyup', '#header #header-menu-unified-search .unified-search__form-input', function() {
	$('#search-help-text').remove()
	let destination = '#header-menu-unified-search .header-menu__content'
	if ($('.unified-search__results-files').length) {
		destination = '.unified-search__results-files'
	}
	setTimeout(function() {
		$('#search-help-text').remove()
		$(destination).prepend('<div id="search-help-text">' + searchHelpText + '</div>')
	}, 1000)
})