From eca3ee46372f3b6f11fb74b0f1d4f3bfc232117b Mon Sep 17 00:00:00 2001 From: Aung Myo Date: Mon, 23 Jul 2018 12:05:45 +0630 Subject: [PATCH] update first bill --- app/views/origami/home/show.html.erb | 2 ++ app/views/origami/rooms/show.html.erb | 8 ++++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/app/views/origami/home/show.html.erb b/app/views/origami/home/show.html.erb index fdc8821b..eed3d8ce 100755 --- a/app/views/origami/home/show.html.erb +++ b/app/views/origami/home/show.html.erb @@ -936,6 +936,8 @@ confirmButtonText: "Yes, print it!", closeOnConfirm: false }, function (isConfirm) { + $('.confirm').off("click touchstart touchend"); + $('.confirm').attr("disabled","disabled"); if (isConfirm) { var sale_id = $('#sale_id').val(); var ajax_url = "/origami/sale/" + sale_id + "/first_bill"; diff --git a/app/views/origami/rooms/show.html.erb b/app/views/origami/rooms/show.html.erb index 7a2c4d0a..155e1e07 100755 --- a/app/views/origami/rooms/show.html.erb +++ b/app/views/origami/rooms/show.html.erb @@ -473,8 +473,8 @@ end %> - - <% end %> --> + --> + <% end %> <% if @sale_array.size > 1 %>

Pending Payment @@ -1024,6 +1024,10 @@ $("#first_bill").on('click', function(){ confirmButtonText: "Yes, print it!", closeOnConfirm: false }, function (isConfirm) { + + $('.confirm').off("click touchstart touchend"); + $('.confirm').attr("disabled","disabled"); + if (isConfirm) { var sale_id = $('#sale_id').val(); var ajax_url = "/origami/sale/"+ sale_id + "/first_bill";