update touch start in print
This commit is contained in:
@@ -447,9 +447,9 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="mr-2 btn btn-link bg-red waves-effect print_receipt"> Print
|
||||
<button type="button" class="mr-2 m-t-5 btn-lg btn-block bg-red waves-effect print_receipt"> Print
|
||||
</button>
|
||||
<button type="button" class="btn btn-link bg-blue waves-effect btn_pdf_close" data-dismiss="modal">
|
||||
<button type="button" class="btn-lg btn-block bg-blue waves-effect btn_pdf_close" data-dismiss="modal">
|
||||
CLOSE
|
||||
</button>
|
||||
</div>
|
||||
@@ -988,7 +988,8 @@ var customer_name = "<%= @customer.name %>";
|
||||
}
|
||||
|
||||
//print pdf function
|
||||
$(".print_receipt").on('click',function(){
|
||||
// $(".print_receipt").on('click',function(){
|
||||
$(document).on('touchstart click', '.print_receipt', function(event){
|
||||
var sale_id = $('#sale_id').text();
|
||||
var filename = $("#filename").val();
|
||||
var printer_name = $("#printer_name").val();
|
||||
|
||||
Reference in New Issue
Block a user