JS error on all[?] templates

Status
Not open for further replies.

nickbunyan

Member
On the 3 or 4 templates I have checked so far I am getting the following error which appears to be because of a problem with the template js file... which is making it very hard to finish the layout!

Uncaught ReferenceError: head is not defined
/components/com_fabrik/views/list/tmpl/bluesky/javascript.js:4​


Which refers to this content in the template directory:
File: Javascript.js containing:-
/**
* @author Robert
*/
head.ready(function() {
Array.from($$('.fabrikList tr')).each(function(r){
document.id(r).addEvent('mouseover', function(e){
if (r.hasClass('oddRow0') || r.hasClass('oddRow1')){
r.addClass('fabrikHover');
}
}, r);

document.id(r).addEvent('mouseout', function(e){
r.removeClass('fabrikHover');
}, r);

document.id(r).addEvent('click', function(e){
if (r.hasClass('oddRow0') || r.hasClass('oddRow1')){
$$('.fabrikList tr').each(function(rx){
rx.removeClass('fabrikRowClick');
});
r.addClass('fabrikRowClick');
}
}, r);
});
})

All of which was updated this morning to the latest as far as I can tell.

Running RC2 on Joomla 3.2

Any advice please?
 
Status
Not open for further replies.
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top