From a3f7e21120e46c0ba2597bab14b9e8c2cdeee769 Mon Sep 17 00:00:00 2001 From: Aung Myo Date: Thu, 17 May 2018 17:01:18 +0630 Subject: [PATCH] update touch start in print --- app/views/origami/payments/show.html.erb | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/app/views/origami/payments/show.html.erb b/app/views/origami/payments/show.html.erb index 7c99df3c..246bbcfe 100755 --- a/app/views/origami/payments/show.html.erb +++ b/app/views/origami/payments/show.html.erb @@ -447,9 +447,9 @@ @@ -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();