f9e8e36d by Jeff Balicki

iefix

1 parent b30d2369
......@@ -17,7 +17,6 @@ var PageChangeOn;
function getAuth() {
console.log(form);
jQuery(document).ready(function($) {
var settings = {
"async": true,
......@@ -724,15 +723,23 @@ function finalPdf(data, json) {
}
$('#controls').hide();
$('#pdfPreviewInner').show()
var strVar2 = ""
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>';
strVar2 += '<div id="seepdf" style=" width:' + imageWidth + 'px; height: ' + imageHeight + 'px; overflow: hidden;" ></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>';
document.getElementById('controls').innerHTML = strVar3;
var options = {
height: imageHeight+"px",
width: imageWidth+"px",
pdfOpenParams: { scrollbar: '0', toolbar: '0', statusbar: '0', messages: '0', navpanes: '0', view: 'FitV', page: + setpage }
};
PDFObject.embed(pdf_customizer + '/fileentry/getPDF/' + json[0].folder + '/new_' + json[0].file, "#seepdf", options);
$.LoadingOverlaySetup({
color: "rgba(0, 0, 0, 0.9)",
image: pluginUrl+"/wp-content/plugins/pdf-customizer-plugin/public/js/loading.gif",
......