Changeset 327fd70 in prototipo_portal_2018 for prototipo/static/js/docsDraggable.js
- Timestamp:
- Oct 26, 2017, 9:45:51 AM (7 years ago)
- Branches:
- master
- Children:
- ad582d7
- Parents:
- 8d37379
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
prototipo/static/js/docsDraggable.js
r0500480 r327fd70 49 49 // Update current page in HTML 50 50 $("#pdf-current-page2").text(page_no); 51 $("#pagepdf").val(page_no); 51 52 VALOR_PAGE = page_no; 52 53 53 54 // Fetch the page … … 84 85 __id = __CANVAS.toDataURL() 85 86 86 var viewdimen = page.getViewport(1); 87 console.log( "Width: " + viewdimen.width + ", Height: " + viewdimen.height); 87 var viewdimen = page.getViewport(1); 88 88 89 89 $("#container1").attr("style", "background-image: url('"+__id+"');background-size: cover; background-repeat: no-repeat; height:"+viewdimen.height+"px; width:"+viewdimen.width+"px"); … … 105 105 $("#pdf-main-container").show(); 106 106 107 $("#file- to-upload2").trigger('click');107 $("#file-sign-ft_Vble").trigger('click'); 108 108 109 109 }); 110 110 111 111 // When user chooses a PDF file 112 $("#file- to-upload2").on('change', function() {112 $("#file-sign-ft_Vble").on('change', function() { 113 113 114 114 // Validate whether PDF 115 if(['application/pdf'].indexOf($("#file- to-upload2").get(0).files[0].type) == -1) {115 if(['application/pdf'].indexOf($("#file-sign-ft_Vble").get(0).files[0].type) == -1) { 116 116 alert('Error : Not a PDF'); 117 117 return; … … 119 119 120 120 // Send the object url of the pdf 121 showPDF2(URL.createObjectURL($("#file- to-upload2").get(0).files[0]));121 showPDF2(URL.createObjectURL($("#file-sign-ft_Vble").get(0).files[0])); 122 122 123 123 if (__CLICK == 0){
Note: See TracChangeset
for help on using the changeset viewer.