Changeset 327fd70 in prototipo_portal_2018 for prototipo/static/js/docsDraggable.js


Ignore:
Timestamp:
Oct 26, 2017, 9:45:51 AM (7 years ago)
Author:
José Sulbarán <jsulbaran@…>
Branches:
master
Children:
ad582d7
Parents:
8d37379
Message:

Se agrego nuevas funciones de sing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • prototipo/static/js/docsDraggable.js

    r0500480 r327fd70  
    4949  // Update current page in HTML
    5050  $("#pdf-current-page2").text(page_no);
    51   $("#pagepdf").val(page_no);
     51 
     52  VALOR_PAGE = page_no;
    5253 
    5354  // Fetch the page
     
    8485        __id = __CANVAS.toDataURL()
    8586       
    86       var viewdimen = page.getViewport(1);
    87       console.log( "Width: " + viewdimen.width + ", Height: " + viewdimen.height);     
     87      var viewdimen = page.getViewport(1); 
    8888
    8989      $("#container1").attr("style", "background-image: url('"+__id+"');background-size: cover; background-repeat: no-repeat;  height:"+viewdimen.height+"px; width:"+viewdimen.width+"px");     
     
    105105  $("#pdf-main-container").show();
    106106
    107   $("#file-to-upload2").trigger('click');
     107  $("#file-sign-ft_Vble").trigger('click');
    108108
    109109});
    110110
    111111// When user chooses a PDF file
    112 $("#file-to-upload2").on('change', function() {
     112$("#file-sign-ft_Vble").on('change', function() {
    113113
    114114  // 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) {
    116116        alert('Error : Not a PDF');
    117117        return;
     
    119119
    120120  // 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]));
    122122
    123123  if (__CLICK == 0){
Note: See TracChangeset for help on using the changeset viewer.