I'm using Joomla 2.5.19 and I have removed Mootools since it is generating a conflict with JQuery. I've also disabled caption.js.
Now, on every page, the following script is being added in the head section:
<script type="text/javascript">
window.addEvent('domready', function() {
$$('.hasTip').each(function(el) {
var title = el.get('title');
if (title) {
var parts = title.split('::', 2);
el.store('tip:title', parts[0]);
el.store('tip:text', parts[1]);
}
});
var JTooltips = new Tips($$('.hasTip'), { maxTitleChars: 50, fixed: false});
});
</script>
This is throwing the error:
Uncaught TypeError: Object [object global] has no method 'addEvent'
How do I get rid of this?
I followed the instructions here and deleted:
JHtml::_('behavior.caption');
From components/com_content/controller.php
But no luck. I also tried including unset($this->_scripts['/media/system/js/caption.js']);
How do I get rid of this?