From abecd08ba2551f545ee5cddc75ab46ea2bc1f1e7 Mon Sep 17 00:00:00 2001 From: phyusin Date: Thu, 7 Dec 2017 18:18:32 +0630 Subject: [PATCH] control double click event --- app/views/origami/payments/show.html.erb | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/app/views/origami/payments/show.html.erb b/app/views/origami/payments/show.html.erb index 830f1a37..dff17d79 100755 --- a/app/views/origami/payments/show.html.erb +++ b/app/views/origami/payments/show.html.erb @@ -379,7 +379,7 @@ return false; }); - $('#pay').click(function(event) { + $('#pay').click(function() { // $('#pay').text("Processing, Please wait!") $( "#loading_wrapper").show(); @@ -417,6 +417,10 @@ swal({ title: "Information!", text: 'Changed amount ' + $('#balance').text() * (-1), + html: true, + closeOnConfirm: false, //It does close the popup when I click on close button + closeOnCancel: false, + allowOutsideClick: false }, function () { window.location.href = '/origami'; }); @@ -425,6 +429,10 @@ swal({ title: "Information!", text: 'Thank You !', + html: true, + closeOnConfirm: false, //It does close the popup when I click on close button + closeOnCancel: false, + allowOutsideClick: false }, function () { window.location.href = '/origami'; });