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').html(response['data']['total_answers']);
|
64 |
$('#my-coach-question-answer-count-answers').append(response['data']['total_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').html( response['data']['total_reactions']);
|
67 |
$('#my-coach-question-answer-count-reactions').append( response['data']['total_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').html(response['data']['total_comments']);
|
70 |
$('#my-coach-question-answer-count-comments').append(response['data']['total_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').html(response['data']['answers']);
|
339 |
$('#my-coach-question-answer-count-answers').append(response['data']['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 535... |
Línea 535... |
535 |
li.text(value.category).appendTo('#my-coach-answer-categories')
|
535 |
li.text(value.category).appendTo('#my-coach-answer-categories')
|
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').html(response['data']['answers']);
|
540 |
$('#my-coach-question-answer-count-answers').append(response['data']['answers']);
|
541 |
$('#my-coach-question-answer-count-reactions').html(response['data']['reactions']);
|
541 |
$('#my-coach-question-answer-count-reactions').append(response['data']['reactions']);
|
542 |
$('#my-coach-question-answer-count-views').html(response['data']['views']);
|
542 |
$('#my-coach-question-answer-count-views').append(response['data']['views']);
|
Línea 543... |
Línea 543... |
543 |
$('#my-coach-question-answer-count-comments').html(response['data']['comments']);
|
543 |
$('#my-coach-question-answer-count-comments').append(response['data']['comments']);
|
Línea 544... |
Línea 544... |
544 |
|
544 |
|