diff --git a/views/contest_edit.ejs b/views/contest_edit.ejs index d82fda3..e4fe124 100644 --- a/views/contest_edit.ejs +++ b/views/contest_edit.ejs @@ -85,7 +85,7 @@ $(function () { onResponse: function (response) { var a = $('#search_admins').val().map(function (x) { return parseInt(x) }); if (response.results) { - response.results = response.results.filter(x => !a.includes(parseInt(x.value))); + response.results = response.results.filter(function(x){ return !a.includes(parseInt(x.value))}); } return response; }, @@ -100,7 +100,7 @@ $(function () { onResponse: function (response) { var a = $('#search_problems').val().map(function (x) { return parseInt(x) }); if (response.results) { - response.results = response.results.filter(x => !a.includes(parseInt(x.value))); + response.results = response.results.filter(function(x) {return !a.includes(parseInt(x.value));}); } return response; }, diff --git a/views/problem_data.ejs b/views/problem_data.ejs index ac2969a..63e2c96 100644 --- a/views/problem_data.ejs +++ b/views/problem_data.ejs @@ -145,7 +145,7 @@ function getIcon(filename) {