Commit 3e432bc2 authored by ericksho-ipre's avatar ericksho-ipre

bugs menores

parent 804126e1
...@@ -44,6 +44,7 @@ ...@@ -44,6 +44,7 @@
{% if is_granted('ROLE_ADMIN') %} {% if is_granted('ROLE_ADMIN') %}
<li><a href="{{path('user_index')}}">Usuarios</a></li> <li><a href="{{path('user_index')}}">Usuarios</a></li>
<li><a href="{{path('event_index')}}">Eventos</a></li> <li><a href="{{path('event_index')}}">Eventos</a></li>
<li><a href="{{path('event_find')}}">Buscar evento</a></li>
{% endif %} {% endif %}
{% if is_granted(['ROLE_STUDENT','ROLE_PROFESSOR']) and not is_granted('ROLE_ADMIN') %} {% if is_granted(['ROLE_STUDENT','ROLE_PROFESSOR']) and not is_granted('ROLE_ADMIN') %}
......
...@@ -32,6 +32,7 @@ ...@@ -32,6 +32,7 @@
function checkQuestionLength() function checkQuestionLength()
{ {
$('#new_question').val($.trim($('#new_question').val()));
var question = $('#new_question').val(); var question = $('#new_question').val();
if(question.length < 9) if(question.length < 9)
...@@ -86,6 +87,7 @@ ...@@ -86,6 +87,7 @@
function submitQuestion() function submitQuestion()
{ {
$('#new_question').val($.trim($('#new_question').val()));
var question = $('#new_question').val(); var question = $('#new_question').val();
$('#new_question').val(null); $('#new_question').val(null);
......
...@@ -52,7 +52,7 @@ security: ...@@ -52,7 +52,7 @@ security:
- { path: ^/question/[0-9]+$, roles: ROLE_ADMIN } - { path: ^/question/[0-9]+$, roles: ROLE_ADMIN }
- { path: ^/question/new$, roles: [ROLE_STUDENT, ROLE_PROFESSOR] } - { path: ^/question/new$, roles: [ROLE_STUDENT, ROLE_PROFESSOR] }
- { path: ^/question/[0-9]+/edit$, roles: ROLE_ADMIN } - { path: ^/question/[0-9]+/edit$, roles: ROLE_ADMIN }
- { path: ^/question/event/[0-9]+$, roles: [ROLE_STUDENT, ROLE_PROFESSOR] } - { path: ^/question/event/[0-9]+, roles: [ROLE_STUDENT, ROLE_PROFESSOR] }
- { path: ^/question/ask/[0-9]+$, roles: [ROLE_STUDENT, ROLE_PROFESSOR] } - { path: ^/question/ask/[0-9]+$, roles: [ROLE_STUDENT, ROLE_PROFESSOR] }
- { path: ^/question/love/[0-9]+$, roles: [ROLE_STUDENT, ROLE_PROFESSOR] } - { path: ^/question/love/[0-9]+$, roles: [ROLE_STUDENT, ROLE_PROFESSOR] }
- { path: ^/question/hate/[0-9]+$, roles: [ROLE_STUDENT, ROLE_PROFESSOR] } - { path: ^/question/hate/[0-9]+$, roles: [ROLE_STUDENT, ROLE_PROFESSOR] }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment