From b573c04471aa4fb3a6cd67219964061a255a3621 Mon Sep 17 00:00:00 2001 From: Miguel Barão Date: Mon, 17 Jan 2022 16:01:05 +0000 Subject: [PATCH] Fix badges in admin (bootstrap) --- BUGS.md | 4 ++++ perguntations/static/js/admin.js | 9 ++++----- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/BUGS.md b/BUGS.md index 11e9093..4cce2b6 100644 --- a/BUGS.md +++ b/BUGS.md @@ -17,6 +17,10 @@ ## TODO +- update datatables para 1.11 +- update codemirror para 6.0 +- update mathjax para 3.2 +- assinalar a vermelho os alunos que excederam o tempo. - pagina de login semelhante ao aprendizations - QuestionTextArea falta reportar nos comments os vários erros que podem ocorrer (timeout, etc) diff --git a/perguntations/static/js/admin.js b/perguntations/static/js/admin.js index e2dc71e..2857438 100644 --- a/perguntations/static/js/admin.js +++ b/perguntations/static/js/admin.js @@ -117,13 +117,12 @@ $(document).ready(function() { d = json.data[i]; var uid = d['uid']; var checked = d['allowed'] ? 'checked' : ''; - // var password_defined = d['password_defined'] ? ' ' : ''; - var hora_inicio = d['start_time'] ? ' ' + d['start_time'].slice(11,16) + '': ''; - var unfocus = d['unfocus'] ? ' unfocus' : ''; + var hora_inicio = d['start_time'] ? ' ' + d['start_time'].slice(11,16) + '': ''; + var unfocus = d['unfocus'] ? ' unfocus' : ''; if (d['area'] > 75) - area = ' ' + Math.round(d['area']) + '%'; + area = ' ' + Math.round(d['area']) + '%'; else - area = ' ' + Math.round(d['area']) + '%'; + area = ' ' + Math.round(d['area']) + '%'; var g = d['grades']; t[i] = []; -- libgit2 0.21.2