Skip to content

Commit

Permalink
Use var instead of let
Browse files Browse the repository at this point in the history
According to @julen:

Note these files don't go through Babel, so the let declaration
won't be transpiled and IE11 will break due to a syntax error.

Followup for c078b5b.
  • Loading branch information
unho committed Jun 27, 2016
1 parent cd4fb13 commit 4ff1826
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pootle/templates/admin/xhr_paid_tasks_report.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ <h2><%= gettext('Registered Tasks') %></h2>
<tbody>
<% _.each(data.paid_tasks, function (row) { %>
<%
let amount;
var amount;
if (row.type === paidTaskTypes.hourlyWork) {
amount = interpolate(ngettext("%s hour", "%s hours", Math.round(row.amount)), [Math.round(row.amount)]);
} else if (row.type === paidTaskTypes.translation ||
Expand Down
2 changes: 1 addition & 1 deletion pootle/templates/admin/xhr_summary_report.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ <h2><%= gettext('Summary') %></h2>
<% }); %>
<% _.each(data.paid_task_summary, function (row) { %>
<%
let amountStr;
var amountStr;
if (row.type === paidTaskTypes.hourlyWork) {
amountStr = interpolate(ngettext("%s hour", "%s hours", Math.round(row.amount)), [Math.round(row.amount)]);
} else if (row.type === paidTaskTypes.translation ||
Expand Down

0 comments on commit 4ff1826

Please sign in to comment.