I have an issue on website – when I search for the first time, everything allright, but on results page I cannot search anymore – there is a javascript error:
Uncaught TypeError: undefined is not a function?Itemid=101&isc=1&searchword=ekologie:966
(anonymous function)
g.condition.i
m
mootools-core.js:118
mootools-core.js:119
If im not mistaken it points on this function:
//validate startdate and enddate before submit form
function validateDateRange(obj){
if(obj.id == ‘sdate_149’ || obj.id == ‘edate_149’){
var sDate = $(‘jak2filter149’).getElement(‘#sdate_149’).get(‘value’);
var eDate = $(‘jak2filter149’).getElement(‘#edate_149’).get(‘value’);
if(sDate != ” && eDate != ”){
if(isDate(sDate) && isDate(eDate)){
obj.removeClass(‘date-error’);
$(‘jak2filter-form-149’).fireEvent(‘submit’);
}
else{
obj.addClass(‘date-error’);
}
}
}
else{
$(‘jak2filter-form-149’).fireEvent(‘submit’);
}
}
Result page is for example http://jctt.avexa.cz/component/jak2filter/?Itemid=101&isc=1&xf_1=4
Thank you for help in advance