| Línea 59... |
Línea 59... |
| 59 |
if(response['success']) {
|
59 |
if(response['success']) {
|
| Línea 60... |
Línea 60... |
| 60 |
|
60 |
|
| Línea 61... |
Línea 61... |
| 61 |
$('#row-' + answer).remove();
|
61 |
$('#row-' + answer).remove();
|
| 62 |
|
62 |
|
| Línea 63... |
Línea 63... |
| 63 |
$('#answers-' + question).html(response['data']['total_answers']);
|
63 |
$('#answers-' + question).html(response['data']['total_answers']);
|
| 64 |
$('#my-coach-question-answer-count-answers').prepend(response['data']['total_answers']);
|
64 |
$('#my-coach-question-answer-count-answers').html(response['data']['total_answers'] + ' LABEL_MY_COACH_ANSWERS');
|
| Línea 65... |
Línea 65... |
| 65 |
|
65 |
|
| 66 |
$('#reactions-' + question).html( response['data']['total_reactions']);
|
66 |
$('#reactions-' + question).html( response['data']['total_reactions']);
|
| Línea 67... |
Línea 67... |
| 67 |
$('#my-coach-question-answer-count-reactions').prepend( response['data']['total_reactions']);
|
67 |
$('#my-coach-question-answer-count-reactions').html( response['data']['total_reactions'] + ' LABEL_MY_COACH_REACTIONS');
|
| 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').prepend(response['data']['total_comments']);
|
70 |
$('#my-coach-question-answer-count-comments').html(response['data']['total_comments'] + ' LABEL_COMMENTS');
|
| Línea 334... |
Línea 334... |
| 334 |
$('#modal-answer').modal('hide');
|
334 |
$('#modal-answer').modal('hide');
|
| Línea 335... |
Línea 335... |
| 335 |
|
335 |
|
| 336 |
if(method == 'add') {
|
336 |
if(method == 'add') {
|
| 337 |
var uuid = $('#row-view').data('question-uuid');
|
337 |
var uuid = $('#row-view').data('question-uuid');
|
| 338 |
$('#answers-' + uuid).html(response['data']['answers']);
|
338 |
$('#answers-' + uuid).html(response['data']['answers']);
|
| 339 |
$('#my-coach-question-answer-count-answers').prepend(response['data']['answers']);
|
339 |
$('#my-coach-question-answer-count-answers').html(response['data']['answers'] + ' LABEL_MY_COACH_ANSWERS');
|
| 340 |
$('#my-coach-question-answers-list').prepend(
|
340 |
$('#my-coach-question-answers-list').prepend(
|
| 341 |
$('#answerTemplate').render(response['data']['item'])
|
341 |
$('#answerTemplate').render(response['data']['item'])
|
| 342 |
);
|
342 |
);
|
| 343 |
$.fn.confirmationAnswers()
|
343 |
$.fn.confirmationAnswers()
|
| Línea 533... |
Línea 533... |
| 533 |
});
|
533 |
});
|
| Línea 534... |
Línea 534... |
| 534 |
|
534 |
|
| 535 |
$('#my-coach-question-answer-question-date').append(response['data']['added_on']);
|
535 |
$('#my-coach-question-answer-question-date').append(response['data']['added_on']);
|
| 536 |
$('#my-coach-question-answer-last-date').append(response['data']['last_answer_on']);
|
536 |
$('#my-coach-question-answer-last-date').append(response['data']['last_answer_on']);
|
| 537 |
$('#my-coach-question-answer-count-answers').html(response['data']['answers'] + ' LABEL_MY_COACH_ANSWERS');
|
537 |
$('#my-coach-question-answer-count-answers').html(response['data']['answers'] + ' LABEL_MY_COACH_ANSWERS');
|
| 538 |
$('#my-coach-question-answer-count-reactions').prepend(response['data']['reactions']);
|
538 |
$('#my-coach-question-answer-count-reactions').html(response['data']['reactions'] + ' LABEL_MY_COACH_REACTIONS');
|
| 539 |
$('#my-coach-question-answer-count-views').prepend(response['data']['views']);
|
539 |
$('#my-coach-question-answer-count-views').html(response['data']['views'] + ' LABEL_MY_COACH_VIEWS');
|
| Línea 540... |
Línea 540... |
| 540 |
$('#my-coach-question-answer-count-comments').prepend(response['data']['comments']);
|
540 |
$('#my-coach-question-answer-count-comments').html(response['data']['comments'] + ' LABEL_COMMENTS');
|
| Línea 541... |
Línea 541... |
| 541 |
|
541 |
|
| Línea 637... |
Línea 637... |
| 637 |
|
637 |
|
| 638 |
//Listado de la respuesta
|
638 |
//Listado de la respuesta
|
| Línea 639... |
Línea 639... |
| 639 |
$('#answer-total-comment-' + answer_uuid).html( response['data']['total_comments_answer'] );
|
639 |
$('#answer-total-comment-' + answer_uuid).html( response['data']['total_comments_answer'] );
|
| 640 |
|
640 |
|
| Línea 641... |
Línea 641... |
| 641 |
//Encabezado pregunta del view
|
641 |
//Encabezado pregunta del view
|
| 642 |
$('#my-coach-question-answer-count-comments').prepend( response['data']['total_comments_question'] );
|
642 |
$('#my-coach-question-answer-count-comments').html( response['data']['total_comments_question'] + ' LABEL_COMMENTS');
|
| Línea 686... |
Línea 686... |
| 686 |
|
686 |
|
| 687 |
//Listado de la respuesta
|
687 |
//Listado de la respuesta
|
| Línea 688... |
Línea 688... |
| 688 |
$('#answer-total-comment-' + answer_uuid).html( response['data']['total_comments_answer'] );
|
688 |
$('#answer-total-comment-' + answer_uuid).html( response['data']['total_comments_answer'] );
|
| 689 |
|
689 |
|
| Línea 690... |
Línea 690... |
| 690 |
//Encabezado pregunta del view
|
690 |
//Encabezado pregunta del view
|
| 691 |
$('#my-coach-question-answer-count-comments').prepend( response['data']['total_comments_question'] );
|
691 |
$('#my-coach-question-answer-count-comments').html( response['data']['total_comments_question'] + ' LABEL_COMMENTS');
|
| Línea 692... |
Línea 692... |
| 692 |
|
692 |
|
| Línea 724... |
Línea 724... |
| 724 |
}
|
724 |
}
|
| 725 |
}).done(function(response) {
|
725 |
}).done(function(response) {
|
| 726 |
if(response['success']) {
|
726 |
if(response['success']) {
|
| Línea 727... |
Línea 727... |
| 727 |
|
727 |
|
| 728 |
$('#reactions-' + question_uuid).html(response['data']['total_reactions_question']) ;
|
728 |
$('#reactions-' + question_uuid).html(response['data']['total_reactions_question']) ;
|
| 729 |
$('#my-coach-question-answer-count-reactions').prepend(response['data']['total_reactions_question']) ;
|
729 |
$('#my-coach-question-answer-count-reactions').html(response['data']['total_reactions_question'] + ' LABEL_MY_COACH_REACTIONS') ;
|
| Línea 730... |
Línea 730... |
| 730 |
$('#answer-total-reactions-' + answer_uuid).html(response['data']['total_reactions_answer']) ;
|
730 |
$('#answer-total-reactions-' + answer_uuid).html(response['data']['total_reactions_answer']) ;
|
| 731 |
|
731 |
|
| 732 |
$('#' + 'current-reaction-' + answer_uuid).data('reaction', response['data']['reaction']);
|
732 |
$('#' + 'current-reaction-' + answer_uuid).data('reaction', response['data']['reaction']);
|
| Línea 766... |
Línea 766... |
| 766 |
$('#' + 'current-reaction-' + answer_uuid).html(
|
766 |
$('#' + 'current-reaction-' + answer_uuid).html(
|
| 767 |
$('#reactionTemplate').render({reaction: ''})
|
767 |
$('#reactionTemplate').render({reaction: ''})
|
| 768 |
);
|
768 |
);
|
| Línea 769... |
Línea 769... |
| 769 |
|
769 |
|
| 770 |
$('#reactions-' + question_uuid).html(response['data']['total_reactions_question']) ;
|
770 |
$('#reactions-' + question_uuid).html(response['data']['total_reactions_question']) ;
|
| 771 |
$('#my-coach-question-answer-count-reactions').prepend(response['data']['total_reactions_question']) ;
|
771 |
$('#my-coach-question-answer-count-reactions').html(response['data']['total_reactions_question'] + ' LABEL_MY_COACH_REACTIONS') ;
|
| Línea 772... |
Línea 772... |
| 772 |
$('#answer-total-reactions-' + answer_uuid).html(response['data']['total_reactions_answer']) ;
|
772 |
$('#answer-total-reactions-' + answer_uuid).html(response['data']['total_reactions_answer']) ;
|
| 773 |
|
773 |
|
| 774 |
} else {
|
774 |
} else {
|
| Línea 907... |
Línea 907... |
| 907 |
|
907 |
|
| Línea 908... |
Línea 908... |
| 908 |
<p id="my-coach-question-description"></p>
|
908 |
<p id="my-coach-question-description"></p>
|
| 909 |
|
909 |
|
| 910 |
<div class="my-coach-record-card-info">
|
910 |
<div class="my-coach-record-card-info">
|
| 911 |
<span id="my-coach-question-answer-count-answers"></span>
|
911 |
<span id="my-coach-question-answer-count-answers"></span>
|
| 912 |
<span id="my-coach-question-answer-count-reactions"> LABEL_MY_COACH_REACTIONS</span>
|
912 |
<span id="my-coach-question-answer-count-reactions"></span>
|
| 913 |
<span id="my-coach-question-answer-count-views"> LABEL_MY_COACH_VIEWS</span>
|
913 |
<span id="my-coach-question-answer-count-views"></span>
|
| Línea 914... |
Línea 914... |
| 914 |
<span id="my-coach-question-answer-count-comments"> LABEL_COMMENTS</span>
|
914 |
<span id="my-coach-question-answer-count-comments"></span>
|
| 915 |
</div>
|
915 |
</div>
|
| 916 |
|
916 |
|