From 7dccb991912277db123b491d9c0e7ffc47e1b508 Mon Sep 17 00:00:00 2001 From: Adabriand Furtado Date: Tue, 29 Mar 2016 21:23:28 -0300 Subject: [PATCH] Correção de bug onde comentários permaneciam entre tarefas. --- validador.py | 2 +- view/assets/js/validador.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/validador.py b/validador.py index 8f2f2db..56be5ff 100644 --- a/validador.py +++ b/validador.py @@ -33,7 +33,7 @@ class Validador: def __update_project_info(self, project): template = self.env.get_template('template.html') project.info['task_presenter'] = template.render(server=self.config['HOST_STATIC_FILES_ENDPOINT'], server_backend=self.config['HOST_ENDPOINT'], app_shortname=self.config['PYBOSSA_APP_SHORT_NAME']) - project.info['thumbnail'] = self.config['HOST_ENDPOINT'] + "/img/thumbnail.png" + project.info['thumbnail'] = self.config['HOST_STATIC_FILES_ENDPOINT'] + "/img/thumbnail.png" project.info['sched'] = "incremental" project.allow_anonymous_contributors = False #project.published = True diff --git a/view/assets/js/validador.js b/view/assets/js/validador.js index 0fb4aa8..acaf57c 100755 --- a/view/assets/js/validador.js +++ b/view/assets/js/validador.js @@ -29,8 +29,8 @@ } function resetComments() { - $("#comment-avatar").val(""); - $("#comment-ref").val(""); + $("#comment-avatar textarea").val("") + $("#comment-ref textarea").val(""); _hideCommentAvatar(); _hideCommentRef(); } -- libgit2 0.21.2