f96ea18a by Jeff Balicki

d

1 parent 12fe1256
//var pluginUrl = window.location.protocol + '//' + window.location.host + '/commonwell';
//var pdf_customizer = "http://localhost:8888/pdf-customizer/public";
var pluginUrl = window.location.protocol + '//' + window.location.host + '/commonwell';
var pdf_customizer = "http://localhost:8888/pdf-customizer/public";
var pluginUrl = window.location.protocol + '//' + window.location.host;
var pdf_customizer = "https://pdf-customizer.synapsus.co";
//var pluginUrl = window.location.protocol + '//' + window.location.host;
//var pdf_customizer = "https://pdf-customizer.synapsus.co";
var imageHeight = "";
......@@ -17,6 +17,7 @@ var PageChangeOn;
function getAuth() {
console.log(form);
jQuery(document).ready(function($) {
var settings = {
"async": true,
......@@ -726,7 +727,7 @@ function finalPdf(data, json) {
var strVar2 = ""
strVar2 += '<div id="seepdf" style=" width:' + imageWidth + 'px; height: ' + imageHeight + 'px; overflow: hidden;" ><object style="overflow-x: hidden; overflow-y: hidden; width: ' + imageWidth + 'px; height: ' + imageHeight + 'px; min-height: 101%; -ms-overflow-style:none;" data=' + pdf_customizer + '/fileentry/getPDF/' + json[0].folder + '/new_' + json[0].file + '#page=' + setpage + '&toolbar=0&navpanes=0&;scrollbar=0&statusbar=0" width="' + imageWidth + '" height="' + imageHeight + '" type="application/pdf" id="pdfloaded"></object></div>';
strVar2 += '<div id="seepdf" style=" width:' + imageWidth + 'px; height: ' + imageHeight + 'px; overflow: hidden;" ><object data=' + pdf_customizer + '/fileentry/getPDF/' + json[0].folder + '/new_' + json[0].file + '#page=' + setpage + '&toolbar=0&navpanes=0&;scrollbar=0&statusbar=0" width="' + imageWidth + '" height="' + imageHeight + '" type="application/pdf" id="pdfloaded"></object></div>';
document.getElementById('pdfPreviewInner').innerHTML = strVar2;
var strVar3 = '<div id="button"><input id="editMe" type="submit" value="Edit"><a href="' + pdf_customizer + '/fileentry/getPDF/' + json[0].folder + '/new_' + json[0].file + '" download="' + json[0].file + '" ><input id="downloadMe" type="submit" value="Download"></a> </div>';
......