Browse Source

modal work

master
Pascal Gloor 5 years ago
parent
commit
2cc801fcee
1 changed files with 16 additions and 3 deletions
  1. 16
    3
      www/js/autodoc.js

+ 16
- 3
www/js/autodoc.js View File

); );
$(col).find(".autodoc_template_home_img").data("documentId", doc.id); $(col).find(".autodoc_template_home_img").data("documentId", doc.id);
$(col).find(".autodoc_template_home_img").on('click', function (e) { $(col).find(".autodoc_template_home_img").on('click', function (e) {
var docid = $(e.target).data("documentId");
console.log(docid);
console.log(e);
home_modal_open($(e.target).data("documentId"));
}); });


$(col) $(col)
setTimeout(function () { upload_status(); }, 100); setTimeout(function () { upload_status(); }, 100);
} }
} }


function home_modal_open(docid) {
$('.autodoc_home_modal_img').attr('src',
conf.openapi +
"/documents/" +
doc.id +
"/image");

$('#autodoc_home_modal').modal('show');
}

function home_modal_close(docid) {
$('#autodoc_home_modal').modal('hide');
}

Loading…
Cancel
Save