Commit e04a0af2 authored by Kevin Yumang's avatar Kevin Yumang

SERV-2286 - pdf viewer modal element (resource publisher manager modifications) WIP

parent 25a28678
......@@ -242,6 +242,8 @@
exit();
}
header("Access-Control-Allow-Origin: *");
/*
|----------------------------------------------------------------------------------------
| ...otherwise by default, load the file and return a successfull response.
......
......@@ -7,3 +7,9 @@ $(window).on('touchstart click resize', function () {
});
},300);
});
$(document).ready(function() {
});
\ No newline at end of file
......@@ -4,11 +4,13 @@
@section('Limitless::Content')
@php
$pdfPath = secure_url("/ceetrox/sidekick/resource/public/Elements/pdfmodal/pdf-sample.pdf");
$pdfPath1 = secure_url("/ceetrox/sidekick/resource/public/Elements/pdfmodal/pdf-sample.pdf");
$pdfPath2 = secure_url("/ceetrox/sidekick/resource/public/Elements/pdfmodal/pdf-sample-2.pdf");
@endphp
@Limitless::CardStart(['title' => "Description", 'icon' => 'icon-info22'])
@Limitless::PdfModal(['url' => $pdfPath])
@Limitless::PdfModal(['title' => 'PDF 1', 'url' => $pdfPath1])
@Limitless::PdfModal(['title' => 'PDF 2', 'url' => $pdfPath2])
@Limitless::CardStop
......
......@@ -16,7 +16,6 @@
</div>
<div class="modal-body">
<iframe class="pdfIframe"
{{ header("Access-Control-Allow-Origin: *") }}
src="https://cdn.backoffice.online/pdfjs/web/viewer.html?file={{ urlencode($url) }}"
style="border:1px solid #999999;" width="100%">
</iframe>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment