| Línea 62... |
Línea 62... |
| 62 |
|
62 |
|
| 63 |
$('#answers-' + question).html(response['data']['total_answers']);
|
63 |
$('#answers-' + question).html(response['data']['total_answers']);
|
| Línea 64... |
Línea 64... |
| 64 |
$('#my-coach-question-answer-count-answers').prepend(response['data']['total_answers']);
|
64 |
$('#my-coach-question-answer-count-answers').prepend(response['data']['total_answers']);
|
| 65 |
|
65 |
|
| Línea 66... |
Línea 66... |
| 66 |
$('#reactions-' + question).html( response['data']['total_reactions']);
|
66 |
$('#reactions-' + question).html( response['data']['total_reactions']);
|
| 67 |
$('#my-coach-question-answer-count-reactions').append( response['data']['total_reactions']);
|
67 |
$('#my-coach-question-answer-count-reactions').prepend( response['data']['total_reactions']);
|
| Línea 68... |
Línea 68... |
| 68 |
|
68 |
|
| 69 |
$('#comments-' + question).html(response['data']['total_comments']);
|
69 |
$('#comments-' + question).html(response['data']['total_comments']);
|
| 70 |
$('#my-coach-question-answer-count-comments').append(response['data']['total_comments']);
|
70 |
$('#my-coach-question-answer-count-comments').prepend(response['data']['total_comments']);
|
| 71 |
|
71 |
|
| Línea 536... |
Línea 536... |
| 536 |
});
|
536 |
});
|
| Línea 537... |
Línea 537... |
| 537 |
|
537 |
|
| 538 |
$('#my-coach-question-answer-question-date').html(response['data']['added_on']);
|
538 |
$('#my-coach-question-answer-question-date').html(response['data']['added_on']);
|
| 539 |
$('#my-coach-question-answer-last-date').html(response['data']['last_answer_on']);
|
539 |
$('#my-coach-question-answer-last-date').html(response['data']['last_answer_on']);
|
| 540 |
$('#my-coach-question-answer-count-answers').prepend(response['data']['answers']);
|
540 |
$('#my-coach-question-answer-count-answers').prepend(response['data']['answers']);
|
| 541 |
$('#my-coach-question-answer-count-reactions').append(response['data']['reactions']);
|
541 |
$('#my-coach-question-answer-count-reactions').prepend(response['data']['reactions']);
|
| 542 |
$('#my-coach-question-answer-count-views').append(response['data']['views']);
|
542 |
$('#my-coach-question-answer-count-views').prepend(response['data']['views']);
|
| Línea 543... |
Línea 543... |
| 543 |
$('#my-coach-question-answer-count-comments').append(response['data']['comments']);
|
543 |
$('#my-coach-question-answer-count-comments').prepend(response['data']['comments']);
|
| Línea 544... |
Línea 544... |
| 544 |
|
544 |
|
| Línea 640... |
Línea 640... |
| 640 |
|
640 |
|
| 641 |
//Listado de la respuesta
|
641 |
//Listado de la respuesta
|
| Línea 642... |
Línea 642... |
| 642 |
$('#answer-total-comment-' + answer_uuid).html( response['data']['total_comments_answer'] );
|
642 |
$('#answer-total-comment-' + answer_uuid).html( response['data']['total_comments_answer'] );
|
| 643 |
|
643 |
|
| Línea 644... |
Línea 644... |
| 644 |
//Encabezado pregunta del view
|
644 |
//Encabezado pregunta del view
|
| 645 |
$('#my-coach-question-answer-count-comments').html( response['data']['total_comments_question'] );
|
645 |
$('#my-coach-question-answer-count-comments').prepend( response['data']['total_comments_question'] );
|
| Línea 689... |
Línea 689... |
| 689 |
|
689 |
|
| 690 |
//Listado de la respuesta
|
690 |
//Listado de la respuesta
|
| Línea 691... |
Línea 691... |
| 691 |
$('#answer-total-comment-' + answer_uuid).html( response['data']['total_comments_answer'] );
|
691 |
$('#answer-total-comment-' + answer_uuid).html( response['data']['total_comments_answer'] );
|
| 692 |
|
692 |
|
| Línea 693... |
Línea 693... |
| 693 |
//Encabezado pregunta del view
|
693 |
//Encabezado pregunta del view
|
| 694 |
$('#my-coach-question-answer-count-comments').html( response['data']['total_comments_question'] );
|
694 |
$('#my-coach-question-answer-count-comments').prepend( response['data']['total_comments_question'] );
|
| Línea 695... |
Línea 695... |
| 695 |
|
695 |
|
| Línea 727... |
Línea 727... |
| 727 |
}
|
727 |
}
|
| 728 |
}).done(function(response) {
|
728 |
}).done(function(response) {
|
| 729 |
if(response['success']) {
|
729 |
if(response['success']) {
|
| Línea 730... |
Línea 730... |
| 730 |
|
730 |
|
| 731 |
$('#reactions-' + question_uuid).html(response['data']['total_reactions_question']) ;
|
731 |
$('#reactions-' + question_uuid).html(response['data']['total_reactions_question']) ;
|
| 732 |
$('#my-coach-question-answer-count-reactions').html(response['data']['total_reactions_question']) ;
|
732 |
$('#my-coach-question-answer-count-reactions').prepend(response['data']['total_reactions_question']) ;
|
| Línea 733... |
Línea 733... |
| 733 |
$('#answer-total-reactions-' + answer_uuid).html(response['data']['total_reactions_answer']) ;
|
733 |
$('#answer-total-reactions-' + answer_uuid).html(response['data']['total_reactions_answer']) ;
|
| 734 |
|
734 |
|
| 735 |
$('#' + 'current-reaction-' + answer_uuid).data('reaction', response['data']['reaction']);
|
735 |
$('#' + 'current-reaction-' + answer_uuid).data('reaction', response['data']['reaction']);
|
| Línea 769... |
Línea 769... |
| 769 |
$('#' + 'current-reaction-' + answer_uuid).html(
|
769 |
$('#' + 'current-reaction-' + answer_uuid).html(
|
| 770 |
$('#reactionTemplate').render({reaction: ''})
|
770 |
$('#reactionTemplate').render({reaction: ''})
|
| 771 |
);
|
771 |
);
|
| Línea 772... |
Línea 772... |
| 772 |
|
772 |
|
| 773 |
$('#reactions-' + question_uuid).html(response['data']['total_reactions_question']) ;
|
773 |
$('#reactions-' + question_uuid).html(response['data']['total_reactions_question']) ;
|
| 774 |
$('#my-coach-question-answer-count-reactions').html(response['data']['total_reactions_question']) ;
|
774 |
$('#my-coach-question-answer-count-reactions').prepend(response['data']['total_reactions_question']) ;
|
| Línea 775... |
Línea 775... |
| 775 |
$('#answer-total-reactions-' + answer_uuid).html(response['data']['total_reactions_answer']) ;
|
775 |
$('#answer-total-reactions-' + answer_uuid).html(response['data']['total_reactions_answer']) ;
|
| 776 |
|
776 |
|
| 777 |
} else {
|
777 |
} else {
|
| Línea 905... |
Línea 905... |
| 905 |
<img id="my-coach-question-user-image" src="" />
|
905 |
<img id="my-coach-question-user-image" src="" />
|
| 906 |
<p id="my-coach-question-user-name"></p>
|
906 |
<p id="my-coach-question-user-name"></p>
|
| 907 |
</div>
|
907 |
</div>
|
| Línea 908... |
Línea 908... |
| 908 |
|
908 |
|
| 909 |
<span id="my-coach-question-answer-count-answers"> LABEL_MY_COACH_ANSWERS</span>
|
909 |
<span id="my-coach-question-answer-count-answers"> LABEL_MY_COACH_ANSWERS</span>
|
| 910 |
<span id="my-coach-question-answer-count-reactions">LABEL_MY_COACH_REACTIONS</span>
|
910 |
<span id="my-coach-question-answer-count-reactions"> LABEL_MY_COACH_REACTIONS</span>
|
| 911 |
<span id="my-coach-question-answer-count-views">LABEL_MY_COACH_VIEWS</span>
|
911 |
<span id="my-coach-question-answer-count-views">LABEL_MY_COACH_VIEWS</span>
|
| 912 |
<span id="my-coach-question-answer-count-comments">LABEL_COMMENTS</span>
|
912 |
<span id="my-coach-question-answer-count-comments">LABEL_COMMENTS</span>
|
| Línea 913... |
Línea 913... |
| 913 |
</div>
|
913 |
</div>
|