Skip to content
This repository has been archived by the owner on Aug 17, 2018. It is now read-only.

Commit

Permalink
app.js: make sure we print multiple gmga/guidelines
Browse files Browse the repository at this point in the history
Spotted by Miryam and @phisaz.

Closes #8.
  • Loading branch information
bassosimone committed Mar 10, 2016
1 parent 6177f4e commit ee7dcc2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ function escapeHtml(unsafe) { // See http://stackoverflow.com/questions/6234773
function drawDetails(info) {
var html = "<td>";
if (info instanceof Array) {
for (var i = 0; i < info; ++i) {
for (var i = 0; i < info.length; ++i) {
html += "<a href='details.html#" + escapeHtml(info[i])
+ "' target='_blank'>" + escapeHtml(info[i]) + "</a>";
+ "' target='_blank'>[" + escapeHtml(info[i]) + "]</a> ";
}
} else if (info) {
html += "<a href='details.html#" + escapeHtml(info)
+ "' target='_blank'>" + escapeHtml(info) + "</a>";
+ "' target='_blank'>[" + escapeHtml(info) + "]</a>";
}
html += "</td>";
return html;
Expand Down

0 comments on commit ee7dcc2

Please sign in to comment.