diff --git a/app/views/origami/payments/show.html.erb b/app/views/origami/payments/show.html.erb index 78f39173..9262e05c 100755 --- a/app/views/origami/payments/show.html.erb +++ b/app/views/origami/payments/show.html.erb @@ -1045,13 +1045,9 @@ var pdf_view = '<%=@pdf_view%>'; //print pdf function // $(".print_receipt").on('click',function(){ - $(document).on('click touchstart', '#print_receipt', function(event){ - event.preventDefault(); - event.target.setAttribute("disabled",true); - if($('#print_receipt').is(":visible")) { - $('#print_receipt').prop("disabled",true); - print_receipt(); - } + $("#print_receipt").on('click touchstart', function(event){ + $(this).off("click touchstart touchend"); + print_receipt(); }); function print_receipt() {