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");