Línea 633... |
Línea 633... |
633 |
}).done(function(response) {
|
633 |
}).done(function(response) {
|
634 |
if(response['success']) {
|
634 |
if(response['success']) {
|
635 |
$('div.comment-' + unique).remove();
|
635 |
$('div.comment-' + unique).remove();
|
Línea 636... |
Línea 636... |
636 |
|
636 |
|
637 |
//Listado de la respuesta
|
637 |
//Listado de la respuesta
|
Línea 638... |
Línea 638... |
638 |
$('#answer-total-comment-' + answer_uuid).html( response['data']['total_comments_answer'] );
|
638 |
$('#answer-total-comment-' + answer_uuid).html( response['data']['total_comments_answer'] + ' LABEL_COMMENTS');
|
639 |
|
639 |
|
Línea 640... |
Línea 640... |
640 |
//Encabezado pregunta del view
|
640 |
//Encabezado pregunta del view
|
Línea 682... |
Línea 682... |
682 |
$('#comment-list-' + answer_uuid).prepend(
|
682 |
$('#comment-list-' + answer_uuid).prepend(
|
683 |
$( "#commentTemplate" ).render( response['data']['item'] )
|
683 |
$( "#commentTemplate" ).render( response['data']['item'] )
|
684 |
);
|
684 |
);
|
Línea 685... |
Línea 685... |
685 |
|
685 |
|
686 |
//Listado de la respuesta
|
686 |
//Listado de la respuesta
|
Línea 687... |
Línea 687... |
687 |
$('#answer-total-comment-' + answer_uuid).html( response['data']['total_comments_answer'] );
|
687 |
$('#answer-total-comment-' + answer_uuid).html( response['data']['total_comments_answer'] + ' LABEL_COMMENTS');
|
688 |
|
688 |
|
Línea 689... |
Línea 689... |
689 |
//Encabezado pregunta del view
|
689 |
//Encabezado pregunta del view
|
Línea 724... |
Línea 724... |
724 |
}).done(function(response) {
|
724 |
}).done(function(response) {
|
725 |
if(response['success']) {
|
725 |
if(response['success']) {
|
Línea 726... |
Línea 726... |
726 |
|
726 |
|
727 |
$('#reactions-' + question_uuid).html(response['data']['total_reactions_question']) ;
|
727 |
$('#reactions-' + question_uuid).html(response['data']['total_reactions_question']) ;
|
728 |
$('#my-coach-question-answer-count-reactions').html(response['data']['total_reactions_question'] + ' LABEL_MY_COACH_REACTIONS') ;
|
728 |
$('#my-coach-question-answer-count-reactions').html(response['data']['total_reactions_question'] + ' LABEL_MY_COACH_REACTIONS') ;
|
Línea 729... |
Línea 729... |
729 |
$('#answer-total-reactions-' + answer_uuid).html(response['data']['total_reactions_answer']) ;
|
729 |
$('#answer-total-reactions-' + answer_uuid).html(response['data']['total_reactions_answer'] + ' LABEL_REACTIONS') ;
|
730 |
|
730 |
|
731 |
$('#' + 'current-reaction-' + answer_uuid).data('reaction', response['data']['reaction']);
|
731 |
$('#' + 'current-reaction-' + answer_uuid).data('reaction', response['data']['reaction']);
|
732 |
$('#' + 'current-reaction-' + answer_uuid).html(
|
732 |
$('#' + 'current-reaction-' + answer_uuid).html(
|
Línea 766... |
Línea 766... |
766 |
$('#reactionTemplate').render({reaction: ''})
|
766 |
$('#reactionTemplate').render({reaction: ''})
|
767 |
);
|
767 |
);
|
Línea 768... |
Línea 768... |
768 |
|
768 |
|
769 |
$('#reactions-' + question_uuid).html(response['data']['total_reactions_question']) ;
|
769 |
$('#reactions-' + question_uuid).html(response['data']['total_reactions_question']) ;
|
770 |
$('#my-coach-question-answer-count-reactions').html(response['data']['total_reactions_question'] + ' LABEL_MY_COACH_REACTIONS') ;
|
770 |
$('#my-coach-question-answer-count-reactions').html(response['data']['total_reactions_question'] + ' LABEL_MY_COACH_REACTIONS') ;
|
Línea 771... |
Línea 771... |
771 |
$('#answer-total-reactions-' + answer_uuid).html(response['data']['total_reactions_answer']) ;
|
771 |
$('#answer-total-reactions-' + answer_uuid).html(response['data']['total_reactions_answer'] + ' LABEL_REACTIONS');
|
772 |
|
772 |
|
773 |
} else {
|
773 |
} else {
|
774 |
$.fn.showError(response['data']);
|
774 |
$.fn.showError(response['data']);
|