From 6146e338c7e9bb94ff6aaae043cd84bcc7b7e91f Mon Sep 17 00:00:00 2001 From: Aung Myo Date: Tue, 24 Jul 2018 14:05:56 +0630 Subject: [PATCH] control open shift double --- app/views/origami/shifts/new.html.erb | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/app/views/origami/shifts/new.html.erb b/app/views/origami/shifts/new.html.erb index 35969b1d..c1de7927 100755 --- a/app/views/origami/shifts/new.html.erb +++ b/app/views/origami/shifts/new.html.erb @@ -109,7 +109,13 @@ }); }) - $('#open_cashier').on('click',function(){ +// $("#print_receipt").on('click touchstart', function(event){ + +// print_receipt(); +// }); + + $('#open_cashier').on('click touchstart', function(event){ + $(this).off("click touchstart touchend"); var cashier_terminal = $('#cashier_terminal').val(); var amount = $('#total').text()||0; $.ajax({type: "POST",