Don't assume $ is jQuery. Rely on jQuery global instead.

This commit is contained in:
Guillermo Rauch 2012-03-01 19:33:42 -03:00
parent 6da48f64c3
commit 4c7d6b0b3e

View File

@ -8,7 +8,8 @@
* 8/17/2011
*/
$('body').on('click', 'ul.tabs > li > a', function(e) {
jQuery(function ($) {
$('body').on('click', 'ul.tabs > li > a', function(e) {
//Get Location of tab's content
var contentLocation = $(this).attr('href');
@ -23,4 +24,5 @@ $('body').on('click', 'ul.tabs > li > a', function(e) {
//Show Tab Content & add active class
$(contentLocation).show().addClass('active').siblings().hide().removeClass('active');
}
});
});