From 33cf4066d841025dc295c99e71c67d4c0ef37500 Mon Sep 17 00:00:00 2001 From: lepipele Date: Fri, 27 Oct 2017 00:13:14 -0500 Subject: [PATCH] Returning code for redirection on payment completed --- BTCPayServer/Views/Invoice/Checkout.cshtml | 2 +- BTCPayServer/wwwroot/js/core.js | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/BTCPayServer/Views/Invoice/Checkout.cshtml b/BTCPayServer/Views/Invoice/Checkout.cshtml index 30a72e8ab..7a06f28c0 100644 --- a/BTCPayServer/Views/Invoice/Checkout.cshtml +++ b/BTCPayServer/Views/Invoice/Checkout.cshtml @@ -397,7 +397,7 @@ diff --git a/BTCPayServer/wwwroot/js/core.js b/BTCPayServer/wwwroot/js/core.js index d5880fd30..4627f3da0 100644 --- a/BTCPayServer/wwwroot/js/core.js +++ b/BTCPayServer/wwwroot/js/core.js @@ -155,14 +155,14 @@ function onDataCallback(jsonData) { $(".modal-dialog").removeClass("expired"); } - //if (srvModel.merchantRefLink != "") { - // $(".action-button").click(function () { - // window.location.href = srvModel.merchantRefLink; - // }); - //} - //else { - // $(".action-button").hide(); - //} + if (srvModel.merchantRefLink != "") { + $(".action-button").click(function () { + window.location.href = srvModel.merchantRefLink; + }); + } + else { + $(".action-button").hide(); + } $(".modal-dialog").addClass("paid");