mirror of
https://github.com/github/choosealicense.com
synced 2024-12-22 12:50:24 +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
|
# Initializes pill navigation for license variations
|
||||||
initLicenseVariationNav: ->
|
initLicenseVariationNav: ->
|
||||||
$(".js-nav-pills a").click (e) ->
|
$(".js-nav-pills a").click (e) ->
|
||||||
selectedTab = $(this).data('selected-tab')
|
selectedTab = $(this).data("selected-tab")
|
||||||
nav = $(this).closest('.js-nav-pills')
|
nav = $(this).closest(".js-nav-pills")
|
||||||
nav.find('li').removeClass('active')
|
nav.find("li").removeClass("active")
|
||||||
nav.closest('.js-license-variations').siblings('.js-variation-tab').removeClass('active')
|
nav.closest(".js-license-variations").siblings(".js-variation-tab").removeClass("active")
|
||||||
|
|
||||||
$(this).parent('li').addClass('active')
|
$(this).parent("li").addClass("active")
|
||||||
$('.' + selectedTab).addClass('active')
|
$("." + selectedTab).addClass("active")
|
||||||
|
|
||||||
e.preventDefault()
|
e.preventDefault()
|
||||||
|
|
||||||
|
@ -110,12 +110,12 @@
|
|||||||
Choosealicense.prototype.initLicenseVariationNav = function() {
|
Choosealicense.prototype.initLicenseVariationNav = function() {
|
||||||
return $(".js-nav-pills a").click(function(e) {
|
return $(".js-nav-pills a").click(function(e) {
|
||||||
var nav, selectedTab;
|
var nav, selectedTab;
|
||||||
selectedTab = $(this).data('selected-tab');
|
selectedTab = $(this).data("selected-tab");
|
||||||
nav = $(this).closest('.js-nav-pills');
|
nav = $(this).closest(".js-nav-pills");
|
||||||
nav.find('li').removeClass('active');
|
nav.find("li").removeClass("active");
|
||||||
nav.closest('.js-license-variations').siblings('.js-variation-tab').removeClass('active');
|
nav.closest(".js-license-variations").siblings(".js-variation-tab").removeClass("active");
|
||||||
$(this).parent('li').addClass('active');
|
$(this).parent("li").addClass("active");
|
||||||
$('.' + selectedTab).addClass('active');
|
$("." + selectedTab).addClass("active");
|
||||||
return e.preventDefault();
|
return e.preventDefault();
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
{% for variation in site.pages %}
|
{% for variation in site.pages %}
|
||||||
{% if variation.category and variation.category == page.category %}
|
{% 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 %}">
|
<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>
|
<tr>
|
||||||
{% assign types = "required|permitted|forbidden" | split: "|" %}
|
{% assign types = "required|permitted|forbidden" | split: "|" %}
|
||||||
{% for type in types %}
|
{% for type in types %}
|
||||||
@ -32,7 +32,7 @@
|
|||||||
{% for type in types %}
|
{% for type in types %}
|
||||||
<td>
|
<td>
|
||||||
<ul class="license-{{ type }}">
|
<ul class="license-{{ type }}">
|
||||||
{% assign rules = site.rules[type] | sort: 'label' %}
|
{% assign rules = site.rules[type] | sort: "label" %}
|
||||||
{% for rule_obj in rules %}
|
{% for rule_obj in rules %}
|
||||||
{% assign req = rule_obj.tag %}
|
{% assign req = rule_obj.tag %}
|
||||||
{% if variation[type] contains req %}
|
{% if variation[type] contains req %}
|
||||||
|
@ -24,7 +24,7 @@
|
|||||||
{% for type in types %}
|
{% for type in types %}
|
||||||
<h3>{{ type | capitalize }}</h3>
|
<h3>{{ type | capitalize }}</h3>
|
||||||
<ul class="license-{{ type }}">
|
<ul class="license-{{ type }}">
|
||||||
{% assign rules = site.rules[type] | sort: 'label' %}
|
{% assign rules = site.rules[type] | sort: "label" %}
|
||||||
{% for rule_obj in rules %}
|
{% for rule_obj in rules %}
|
||||||
{% assign req = rule_obj.tag %}
|
{% assign req = rule_obj.tag %}
|
||||||
{% if page[type] contains req %}
|
{% if page[type] contains req %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user