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

2
public/js/app.js vendored

File diff suppressed because one or more lines are too long

View file

@ -1,4 +1,4 @@
{
"/css/app.css": "/css/app.css?id=cdbee4d3b17bce4786a2",
"/js/app.js": "/js/app.js?id=c15b7d6018358ee45de9"
"/js/app.js": "/js/app.js?id=bf17db5adf00db2c59ef"
}

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