primo commit
This commit is contained in:
50
media/com_jem/js/search.js
Normal file
50
media/com_jem/js/search.js
Normal file
@ -0,0 +1,50 @@
|
||||
/**
|
||||
* @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();
|
||||
});
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user