|
|
@@ -47,7 +47,7 @@ async function paginationSummary(pageSize,page,id,token){ |
|
|
|
<th scope="row">${((obj.meta.pagination.page-1)*pageSize)+indx+1}</th> |
|
|
|
<td>${i.attributes.company.data.attributes.Name}</td> |
|
|
|
<td>${i.attributes.division.data.attributes.Name}</td> |
|
|
|
<td>${i.attributes.Title??'-'}</td> |
|
|
|
<td>${i.attributes.Presented?moment(i.attributes.Presented,'MM/DD/YYYY').format('DD-MMM-YYYY'):'-'}</td> |
|
|
|
<td>${imgs}</td> |
|
|
|
<td>${(i.attributes.Video.data)?"<a href='"+i.attributes.Video.data.attributes.url+"' target='_blank'>video</a>":'-'}</td> |
|
|
|
<td>${i.attributes.Name??'-'}</td> |
|
|
@@ -885,3 +885,20 @@ $('#btnSharing').click(e => { |
|
|
|
e.preventDefault(); |
|
|
|
showForm('Sharing'); |
|
|
|
}); |
|
|
|
|
|
|
|
$('.exportSummary').click(async e => { |
|
|
|
e.preventDefault(); |
|
|
|
window.html2canvas = html2canvas; |
|
|
|
var doc = new jspdf.jsPDF('p', 'pt'); |
|
|
|
var source = window.document.getElementById("summaryTable"); |
|
|
|
await doc.html( |
|
|
|
source, |
|
|
|
{ |
|
|
|
callback:function(pdf){ |
|
|
|
pdf.save(`${$('#summaryMaterial').text()}.pdf`); |
|
|
|
}, |
|
|
|
html2canvas: { scale: 0.75 }, |
|
|
|
} |
|
|
|
); |
|
|
|
}); |
|
|
|
|