Answer the question
In order to leave comments, you need to log in
Mootools code does not work in joomla 3, what should I change in the code?
Hello! Site on Joomla 3. The following code in the script does not work:
$$('#filter_type_id',
'#filter_department_id',
'#filter_town_id',
'#filter_area_id',
'#rooms_min',
'.amenities input'
).each(function(item) {
item.addEvent('change', function() {
geoSearch.refresh();
});
});
Answer the question
In order to leave comments, you need to log in
firstly, clearInterval
and secondly, you immediately call the function like
this
кнопка.addEventListener ("mouseup" , function() {
clearInterval(timerId);
} , false);
If it's a compatibility problem, since version 1.2 Mootools allows you to use not only the dollar sign $, but also the document.id method.
You can try wrapping your code like this:
(function($) {
//здесь можно писать любой код на Mootools с использованием $
})(document.id);
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question