Switched to 2-space indentation.

This commit is contained in:
Guillermo Rauch 2012-03-01 19:32:51 -03:00
parent 17f0141da9
commit 6da48f64c3

View File

@ -9,21 +9,18 @@
*/ */
$('body').on('click', 'ul.tabs > li > a', function(e) { $('body').on('click', 'ul.tabs > li > a', function(e) {
//Get Location of tab's content
var contentLocation = $(this).attr('href');
//Get Location of tab's content //Let go if not a hashed one
var contentLocation = $(this).attr('href'); if(contentLocation.charAt(0)=="#") {
e.preventDefault();
//Let go if not a hashed one //Make Tab Active
if(contentLocation.charAt(0)=="#") { $(this).parent().siblings().children('a').removeClass('active');
$(this).addClass('active');
e.preventDefault(); //Show Tab Content & add active class
$(contentLocation).show().addClass('active').siblings().hide().removeClass('active');
//Make Tab Active }
$(this).parent().siblings().children('a').removeClass('active');
$(this).addClass('active');
//Show Tab Content & add active class
$(contentLocation).show().addClass('active').siblings().hide().removeClass('active');
}
}); });