Skip to content

Instantly share code, notes, and snippets.

View hiteshaggarwal's full-sized avatar

Hitesh Aggarwal hiteshaggarwal

View GitHub Profile
@esedic
esedic / mootools_conflict_fix.js
Created November 17, 2015 22:42
Fix Mootools conflicts with Bootstrap Joomla templates when you use an extension that requires Mootools
/*
* Add missing Mootools when Bootstrap is loaded
* This fix creates dummy implementations for the missing Mootools functions.
* It requires that you have jQuery loaded and if you are dealing with Mootools + jQuery is a good idea to add the call just before this javascript code.
* This issue shouldn't affect Bootstrap 3 templates but the fix explained here should be compatible with both.
*/
(function($)
{
$(document).ready(function(){
var bootstrapLoaded = (typeof $().carousel == 'function');