Commit 571abdfed7c825975b3a5b0881f7f00cd23315e6
1 parent
6d2fed80
Exists in
master
and in
1 other branch
- textarea shows last wrong result.
Showing
3 changed files
with
4 additions
and
2 deletions
Show diff stats
BUGS.md
@@ -7,9 +7,11 @@ BUGS: | @@ -7,9 +7,11 @@ BUGS: | ||
7 | 7 | ||
8 | SOLVED: | 8 | SOLVED: |
9 | 9 | ||
10 | +- textarea mantem ultima resposta errada. util para respostas grandes. | ||
10 | - ver campo hidden com ref que esta na textarea mas nao nos outros. | 11 | - ver campo hidden com ref que esta na textarea mas nao nos outros. |
11 | - shift enter submete textarea | 12 | - shift enter submete textarea |
12 | - clicar texto selecciona checkboxes/radio. | 13 | - clicar texto selecciona checkboxes/radio. |
13 | - focar text/textarea | 14 | - focar text/textarea |
14 | - implementar template base das perguntas base e estender para cada tipo. | 15 | - implementar template base das perguntas base e estender para cada tipo. |
15 | - submissão com enter em perguntas text faz get? provavelmente está a fazer o submit do form em vez de ir pelo ajax. | 16 | - submissão com enter em perguntas text faz get? provavelmente está a fazer o submit do form em vez de ir pelo ajax. |
17 | + |
templates/learn.html
@@ -45,7 +45,7 @@ | @@ -45,7 +45,7 @@ | ||
45 | <span class="icon-bar"></span> | 45 | <span class="icon-bar"></span> |
46 | </button> | 46 | </button> |
47 | <a class="navbar-brand" href="#"> | 47 | <a class="navbar-brand" href="#"> |
48 | - MonkeyBrain | 48 | + Penalty |
49 | </a> | 49 | </a> |
50 | </div> | 50 | </div> |
51 | <div class="collapse navbar-collapse" id="myNavbar"> | 51 | <div class="collapse navbar-collapse" id="myNavbar"> |
templates/question-textarea.html
1 | {% extends "question.html" %} | 1 | {% extends "question.html" %} |
2 | 2 | ||
3 | {% block answer %} | 3 | {% block answer %} |
4 | -<textarea class="form-control" rows="{{ question['lines'] }}" name="answer" autofocus></textarea><br /> | 4 | +<textarea class="form-control" rows="{{ question['lines'] }}" name="answer" autofocus>{{ question['answer'][0] if question['answer'] is not None else '' }}</textarea><br /> |
5 | <input type="hidden" name="question_ref" value="{{ question['ref'] }}"> | 5 | <input type="hidden" name="question_ref" value="{{ question['ref'] }}"> |
6 | {% end %} | 6 | {% end %} |