Fix copy/paste BTC amount, add redirect store link to invoice

This commit is contained in:
nicolas.dorier
2017-10-19 16:37:07 +09:00
parent db1cf5c2ce
commit a14b94c96f
3 changed files with 30 additions and 22 deletions

View File

@@ -171,6 +171,17 @@ function updateState(status) {
if ($(".modal-dialog").hasClass("expired")) {
$(".modal-dialog").removeClass("expired");
}
if (merchantRefLink != "") {
$(".action-button").click(function () {
window.location.href = merchantRefLink;
});
}
else
{
$(".action-button").hide();
}
$(".modal-dialog").addClass("paid");
if ($("#scan").hasClass("active")) {
@@ -213,11 +224,6 @@ $(".menu__item").click(function () {
// function to load contents in different language should go there
});
// Redirect
$("#expired .action-button").click(function () {
window.location.href = merchantRefLink;
});
// Validate Email address
function validateEmail(email) {
var re = /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;