Files
conservatorio-tomadini/media/com_jem/js/search.js
2024-12-17 17:34:10 +01:00

51 lines
1.3 KiB
JavaScript

/**
* @package JEM
* @copyright (C) 2013-2024 joomlaeventmanager.net
* @copyright (C) 2005-2009 Christoph Lukes
* @license https://www.gnu.org/licenses/gpl-3.0 GNU/GPL
* @author Sascha Karnatz
*/
// window.addEvent('domready', function(){
jQuery(document).ready(function ($) {
/*
$('filter_date').addEvent('change', function() {
this.form.submit();
});
*/
if ($('#filter_continent').length) {
$('#filter_continent').on('change', function () {
if ($('#filter_country').length) {
$('#filter_country').val('');
}
if ($('#filter_city').length) {
$('#filter_city').val('');
}
this.form.submit();
});
}
if ($('#filter_country').length) {
$('#filter_country').on('change', function () {
if ($('#filter_city').length) {
$('#filter_city').val('');
}
this.form.submit();
});
}
if ($('#filter_city').length) {
$('#filter_city').on('change', function () {
this.form.submit();
});
}
if ($('#filter_category').length) {
$('#filter_category').on('change', function () {
this.form.submit();
});
}
});