catch up to master
This commit is contained in:
parent
8970025d28
commit
4b7edef2dc
20
index.html
20
index.html
@ -224,13 +224,13 @@ $("#e10_3").select2({
|
||||
|
||||
|
||||
<section id="changelog">
|
||||
<h2>Changelog</h2>
|
||||
<h2>Changelog <span id="milestones"></span> <span id="totalissues"></span></h2>
|
||||
<div class="row"><div class="span12">
|
||||
<ul>
|
||||
<li>Loading...</li>
|
||||
<script>
|
||||
$(function() {
|
||||
var url="https://api.github.com/repos/ivaynberg/select2/issues?state=closed&milestone=9";
|
||||
var url="https://api.github.com/repos/ivaynberg/select2/issues?state=closed&milestone=10";
|
||||
$.ajax({
|
||||
url: url,
|
||||
dataType: "jsonp"
|
||||
@ -245,6 +245,22 @@ $("#e10_3").select2({
|
||||
.replace(/\$title/g, this.title)
|
||||
list.append(markup);
|
||||
});
|
||||
|
||||
$("#totalissues").html("("+issues.data.length+")");
|
||||
|
||||
var milestones=$.map(issues.data, function(e) {
|
||||
return e.milestone.title;
|
||||
});
|
||||
|
||||
for (var i=1;i<milestones.length;i++) {
|
||||
if (milestones[i-1]===milestones[i]) {
|
||||
milestones.splice(i, 1);
|
||||
i--;
|
||||
}
|
||||
}
|
||||
$("#milestones").html(milestones.join(", "));
|
||||
|
||||
|
||||
}).fail(function() {
|
||||
$("#changelog ul").empty().append("<li class='alert alert-error'>Error retrieving changelog</li>");
|
||||
});
|
||||
|
@ -241,13 +241,13 @@ $("#e10_4").select2({
|
||||
|
||||
|
||||
<section id="changelog">
|
||||
<h2>Changelog</h2>
|
||||
<h2>Changelog <span id="milestones"></span> <span id="totalissues"></span></h2>
|
||||
<div class="row"><div class="span12">
|
||||
<ul>
|
||||
<li>Loading...</li>
|
||||
<script>
|
||||
$(function() {
|
||||
var url="https://api.github.com/repos/ivaynberg/select2/issues?state=closed&milestone=8";
|
||||
var url="https://api.github.com/repos/ivaynberg/select2/issues?state=closed&milestone=10";
|
||||
$.ajax({
|
||||
url: url,
|
||||
dataType: "jsonp"
|
||||
@ -262,6 +262,22 @@ $("#e10_4").select2({
|
||||
.replace(/\$title/g, this.title)
|
||||
list.append(markup);
|
||||
});
|
||||
|
||||
$("#totalissues").html("("+issues.data.length+")");
|
||||
|
||||
var milestones=$.map(issues.data, function(e) {
|
||||
return e.milestone.title;
|
||||
});
|
||||
|
||||
for (var i=1;i<milestones.length;i++) {
|
||||
if (milestones[i-1]===milestones[i]) {
|
||||
milestones.splice(i, 1);
|
||||
i--;
|
||||
}
|
||||
}
|
||||
$("#milestones").html(milestones.join(", "));
|
||||
|
||||
|
||||
}).fail(function() {
|
||||
$("#changelog ul").empty().append("<li class='alert alert-error'>Error retrieving changelog</li>");
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user