diff --git a/_includes/js/app.coffee b/_includes/js/app.coffee index 2cad4fa..2c36f5f 100644 --- a/_includes/js/app.coffee +++ b/_includes/js/app.coffee @@ -96,13 +96,13 @@ class Choosealicense # Initializes pill navigation for license variations initLicenseVariationNav: -> $(".js-nav-pills a").click (e) -> - selectedTab = $(this).data('selected-tab') - nav = $(this).closest('.js-nav-pills') - nav.find('li').removeClass('active') - nav.closest('.js-license-variations').siblings('.js-variation-tab').removeClass('active') + selectedTab = $(this).data("selected-tab") + nav = $(this).closest(".js-nav-pills") + nav.find("li").removeClass("active") + nav.closest(".js-license-variations").siblings(".js-variation-tab").removeClass("active") - $(this).parent('li').addClass('active') - $('.' + selectedTab).addClass('active') + $(this).parent("li").addClass("active") + $("." + selectedTab).addClass("active") e.preventDefault() diff --git a/_includes/js/app.js b/_includes/js/app.js index c449e85..71e3686 100644 --- a/_includes/js/app.js +++ b/_includes/js/app.js @@ -110,12 +110,12 @@ Choosealicense.prototype.initLicenseVariationNav = function() { return $(".js-nav-pills a").click(function(e) { var nav, selectedTab; - selectedTab = $(this).data('selected-tab'); - nav = $(this).closest('.js-nav-pills'); - nav.find('li').removeClass('active'); - nav.closest('.js-license-variations').siblings('.js-variation-tab').removeClass('active'); - $(this).parent('li').addClass('active'); - $('.' + selectedTab).addClass('active'); + selectedTab = $(this).data("selected-tab"); + nav = $(this).closest(".js-nav-pills"); + nav.find("li").removeClass("active"); + nav.closest(".js-license-variations").siblings(".js-variation-tab").removeClass("active"); + $(this).parent("li").addClass("active"); + $("." + selectedTab).addClass("active"); return e.preventDefault(); }); }; diff --git a/_includes/license-overview.html b/_includes/license-overview.html index f563fde..267f6a4 100644 --- a/_includes/license-overview.html +++ b/_includes/license-overview.html @@ -21,7 +21,7 @@ {% for variation in site.pages %} {% if variation.category and variation.category == page.category %}
{{ type | capitalize }}
|