Add clarification to problem list page

This commit is contained in:
cuom1999 2021-10-19 17:41:53 -05:00
parent 425354a2de
commit c973250814
5 changed files with 56 additions and 27 deletions

View file

@ -335,17 +335,19 @@ window.register_contest_notification = function(url) {
console.log("Fail to update clarification");
})
.done(function(data) {
try {
JSON.parse(data);
}
catch (e) {
return;
}
for (i of data) {
window.notify_clarification(i);
}
if (data.status == 403) {
console.log("Fail to retrieve data");
}
else {
$('#chat-online-content').html(data).find('.toggle').each(function () {
register_toggle($(this));
});;
}
})
}
get_clarifications();