Add clarification to problem list page
This commit is contained in:
parent
425354a2de
commit
c973250814
5 changed files with 56 additions and 27 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue