mirror of
https://github.com/github/choosealicense.com
synced 2024-12-22 04:40:09 +01:00
Use double quotes.
This commit is contained in:
parent
ad54d65493
commit
db22e94170
@ -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()
|
||||
|
||||
|
@ -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();
|
||||
});
|
||||
};
|
||||
|
@ -21,7 +21,7 @@
|
||||
{% for variation in site.pages %}
|
||||
{% if variation.category and variation.category == page.category %}
|
||||
<div id="{{ variation.tab-slug }}" class="variation-tab variation-{{ variation.tab-slug }} js-variation-tab{% if page.tab-slug == variation.tab-slug %} active{% endif %}">
|
||||
<table class='license-rules'>
|
||||
<table class="license-rules">
|
||||
<tr>
|
||||
{% assign types = "required|permitted|forbidden" | split: "|" %}
|
||||
{% for type in types %}
|
||||
@ -32,7 +32,7 @@
|
||||
{% for type in types %}
|
||||
<td>
|
||||
<ul class="license-{{ type }}">
|
||||
{% assign rules = site.rules[type] | sort: 'label' %}
|
||||
{% assign rules = site.rules[type] | sort: "label" %}
|
||||
{% for rule_obj in rules %}
|
||||
{% assign req = rule_obj.tag %}
|
||||
{% if variation[type] contains req %}
|
||||
|
@ -24,7 +24,7 @@
|
||||
{% for type in types %}
|
||||
<h3>{{ type | capitalize }}</h3>
|
||||
<ul class="license-{{ type }}">
|
||||
{% assign rules = site.rules[type] | sort: 'label' %}
|
||||
{% assign rules = site.rules[type] | sort: "label" %}
|
||||
{% for rule_obj in rules %}
|
||||
{% assign req = rule_obj.tag %}
|
||||
{% if page[type] contains req %}
|
||||
|
Loading…
x
Reference in New Issue
Block a user