fix: Disable saerch submit when tile search is active
This commit is contained in:
parent
4a90fdf22d
commit
2836dadf1a
2
public/js/app.js
vendored
2
public/js/app.js
vendored
File diff suppressed because one or more lines are too long
2
public/mix-manifest.json
generated
2
public/mix-manifest.json
generated
|
@ -1,4 +1,4 @@
|
||||||
{
|
{
|
||||||
"/css/app.css": "/css/app.css?id=cdbee4d3b17bce4786a2",
|
"/css/app.css": "/css/app.css?id=cdbee4d3b17bce4786a2",
|
||||||
"/js/app.js": "/js/app.js?id=c15b7d6018358ee45de9"
|
"/js/app.js": "/js/app.js?id=bf17db5adf00db2c59ef"
|
||||||
}
|
}
|
||||||
|
|
|
@ -158,6 +158,11 @@ $.when( $.ready ).then(function() {
|
||||||
$('.tooltip', this).removeClass('active');
|
$('.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 () {
|
$('#search-container').on('input', 'input[name=q]', function () {
|
||||||
const search = this.value
|
const search = this.value
|
||||||
|
|
Loading…
Reference in a new issue