fix: Disable saerch submit when tile search is active

This commit is contained in:
Attila Kerekes
2022-11-23 18:14:31 +01:00
parent 4a90fdf22d
commit 2836dadf1a
3 changed files with 7 additions and 2 deletions

View File

@@ -158,6 +158,11 @@ $.when( $.ready ).then(function() {
$('.tooltip', this).removeClass('active');
})
$('.searchform > form').on('submit', function (event) {
if ($('#search-container select[name=provider]').val() === 'tiles') {
event.preventDefault();
}
});
$('#search-container').on('input', 'input[name=q]', function () {
const search = this.value