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">
|
<section id="changelog">
|
||||||
<h2>Changelog</h2>
|
<h2>Changelog <span id="milestones"></span> <span id="totalissues"></span></h2>
|
||||||
<div class="row"><div class="span12">
|
<div class="row"><div class="span12">
|
||||||
<ul>
|
<ul>
|
||||||
<li>Loading...</li>
|
<li>Loading...</li>
|
||||||
<script>
|
<script>
|
||||||
$(function() {
|
$(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({
|
$.ajax({
|
||||||
url: url,
|
url: url,
|
||||||
dataType: "jsonp"
|
dataType: "jsonp"
|
||||||
@ -245,6 +245,22 @@ $("#e10_3").select2({
|
|||||||
.replace(/\$title/g, this.title)
|
.replace(/\$title/g, this.title)
|
||||||
list.append(markup);
|
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() {
|
}).fail(function() {
|
||||||
$("#changelog ul").empty().append("<li class='alert alert-error'>Error retrieving changelog</li>");
|
$("#changelog ul").empty().append("<li class='alert alert-error'>Error retrieving changelog</li>");
|
||||||
});
|
});
|
||||||
|
@ -240,36 +240,52 @@ $("#e10_4").select2({
|
|||||||
</header>
|
</header>
|
||||||
|
|
||||||
|
|
||||||
<section id="changelog">
|
<section id="changelog">
|
||||||
<h2>Changelog</h2>
|
<h2>Changelog <span id="milestones"></span> <span id="totalissues"></span></h2>
|
||||||
<div class="row"><div class="span12">
|
<div class="row"><div class="span12">
|
||||||
<ul>
|
<ul>
|
||||||
<li>Loading...</li>
|
<li>Loading...</li>
|
||||||
<script>
|
<script>
|
||||||
$(function() {
|
$(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({
|
$.ajax({
|
||||||
url: url,
|
url: url,
|
||||||
dataType: "jsonp"
|
dataType: "jsonp"
|
||||||
}).done(function(issues) {
|
}).done(function(issues) {
|
||||||
var list=$("#changelog ul");
|
var list=$("#changelog ul");
|
||||||
var template="<li><a href='$url'><span>#$num</span> </a>$title</li>";
|
var template="<li><a href='$url'><span>#$num</span> </a>$title</li>";
|
||||||
list.empty();
|
list.empty();
|
||||||
$.each(issues.data, function() {
|
$.each(issues.data, function() {
|
||||||
var markup=template
|
var markup=template
|
||||||
.replace(/\$url/g, this.html_url)
|
.replace(/\$url/g, this.html_url)
|
||||||
.replace(/\$num/g, this.number)
|
.replace(/\$num/g, this.number)
|
||||||
.replace(/\$title/g, this.title)
|
.replace(/\$title/g, this.title)
|
||||||
list.append(markup);
|
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() {
|
}).fail(function() {
|
||||||
$("#changelog ul").empty().append("<li class='alert alert-error'>Error retrieving changelog</li>");
|
$("#changelog ul").empty().append("<li class='alert alert-error'>Error retrieving changelog</li>");
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
</ul>
|
</ul>
|
||||||
</div></div>
|
</div></div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section>
|
<section>
|
||||||
<h2>Browser Compatibility</h2>
|
<h2>Browser Compatibility</h2>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user