Advertisement
oscarholmedo

Joomla Bootstrap Mootools carousel conflict fix

Jul 31st, 2013
220
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
jQuery 0.41 KB | None | 0 0
  1.     //Joomla Bootstrap Mootools carousel conflict fix
  2.     if (typeof jQuery != 'undefined' && typeof MooTools != 'undefined' ) {
  3.     // both present , kill jquery slide for carousel class
  4.     (function($) {
  5.            $(document).ready(function(){
  6.             $('.carousel').each(function(index, element) {
  7.                     $(this)[index].slide = null;
  8.                    });
  9.              });
  10.      })(jQuery);
  11.     }
  12.  
  13.     jQuery('.carousel').carousel({
  14.       interval: 3000
  15.     })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement