<div class="modal in" id="modalprev_norm_limit" tabindex="-1" role="dialog" data-keyboard="false" aria-labelledby="modal-title" aria-hidden="true">
<div class="row-col h-v modalAddComPro">
<div class="row-cell v-m">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<!-- <form> -->
<div class="modal-header">
<h2>Отчёт</h2>
</div>
<div class="modal-body text-center">
<div class="textidempty">
</div>
<table st-table="displayedCollection" st-safe-src="rowCollection" class="table table-striped displayedCollection">
<thead>
<tr>
<th>Проект</th>
<th>Задача</th>
<th>Время</th>
<th>Комментарий</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
<div class="textiretyjhff">
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn danger p-x-md closeLimitButtonn">Закрыть</button>
</div>
<!-- </form> -->
</div>
</div>
</div>
</div>
</div>
$(document).on('click', '.faFaListAlt', function(){
$('#modalprev_norm_limit').modal('show');
var a = $(this).data("id");
var b = $(this).data("date");
var c = $(this).data("datastart");
$.ajax({
type: 'POST',
url: '<?php echo A_URLh;?>visitslog/user/viewcomments/',
data: {
a: a,
b: b,
}
})
.done(function(result) {
console.log(result);
$("#hellopreloader_preload").css("display", "block");
if( result.ara == null){
$(".displayedCollection").css("display", "none");
$(".textidempty").append('Нет данных');
} else {
$(".displayedCollection").removeAttr('style');
$.each(result.ara, function( indexw, value ) {
$(".displayedCollection").find("tbody").append(
'<tr class="ng-binding">'+
'<td class="ng-binding">'+value.name+'</td>'+
'<td class="ng-binding">'+value.task+'</td>'+
'<td class="ng-binding">'+value.time+'</td>'+
'<td class="ng-binding">'+value.comment+'</td>'+
'</tr>'
);
});
$(".textiretyjhff").empty();
$(".textiretyjhff").append('Время - '+result.time+'<br>Продуктивность - '+c+'%');
}
xEdit();
$("#hellopreloader_preload").css("display", "none");
});
});
<link rel="stylesheet" href="style.css">