Move project files to root directory
This commit is contained in:
parent
2fd7bf3041
commit
ace2fa6eb9
223 changed files with 7 additions and 7 deletions
18
dal/static/hosting/js/order.js
Normal file
18
dal/static/hosting/js/order.js
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
$(document).ready(function() {
|
||||
$('.btn-pdf').click(function(e) {
|
||||
e.preventDefault();
|
||||
var $target = $($(this).attr('data-target')) || $('body');
|
||||
var fileName = $target.attr('id') + '.pdf';
|
||||
html2pdf($target[0], {
|
||||
filename: fileName,
|
||||
html2canvas: {
|
||||
scale: 2
|
||||
}
|
||||
});
|
||||
});
|
||||
$('.btn-print').click(function(e) {
|
||||
e.preventDefault();
|
||||
console.log('a');
|
||||
window.print();
|
||||
});
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue