iefix
Showing
1 changed file
with
9 additions
and
2 deletions
| ... | @@ -17,7 +17,6 @@ var PageChangeOn; | ... | @@ -17,7 +17,6 @@ var PageChangeOn; |
| 17 | 17 | ||
| 18 | 18 | ||
| 19 | function getAuth() { | 19 | function getAuth() { |
| 20 | console.log(form); | ||
| 21 | jQuery(document).ready(function($) { | 20 | jQuery(document).ready(function($) { |
| 22 | var settings = { | 21 | var settings = { |
| 23 | "async": true, | 22 | "async": true, |
| ... | @@ -726,13 +725,21 @@ function finalPdf(data, json) { | ... | @@ -726,13 +725,21 @@ function finalPdf(data, json) { |
| 726 | $('#pdfPreviewInner').show() | 725 | $('#pdfPreviewInner').show() |
| 727 | 726 | ||
| 728 | 727 | ||
| 728 | |||
| 729 | var strVar2 = "" | 729 | var strVar2 = "" |
| 730 | 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>'; | 730 | strVar2 += '<div id="seepdf" style=" width:' + imageWidth + 'px; height: ' + imageHeight + 'px; overflow: hidden;" ></div>'; |
| 731 | document.getElementById('pdfPreviewInner').innerHTML = strVar2; | 731 | document.getElementById('pdfPreviewInner').innerHTML = strVar2; |
| 732 | 732 | ||
| 733 | 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>'; | 733 | 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>'; |
| 734 | document.getElementById('controls').innerHTML = strVar3; | 734 | document.getElementById('controls').innerHTML = strVar3; |
| 735 | 735 | ||
| 736 | var options = { | ||
| 737 | height: imageHeight+"px", | ||
| 738 | width: imageWidth+"px", | ||
| 739 | pdfOpenParams: { scrollbar: '0', toolbar: '0', statusbar: '0', messages: '0', navpanes: '0', view: 'FitV', page: + setpage } | ||
| 740 | }; | ||
| 741 | PDFObject.embed(pdf_customizer + '/fileentry/getPDF/' + json[0].folder + '/new_' + json[0].file, "#seepdf", options); | ||
| 742 | |||
| 736 | $.LoadingOverlaySetup({ | 743 | $.LoadingOverlaySetup({ |
| 737 | color: "rgba(0, 0, 0, 0.9)", | 744 | color: "rgba(0, 0, 0, 0.9)", |
| 738 | image: pluginUrl+"/wp-content/plugins/pdf-customizer-plugin/public/js/loading.gif", | 745 | image: pluginUrl+"/wp-content/plugins/pdf-customizer-plugin/public/js/loading.gif", | ... | ... |
-
Please register or sign in to post a comment