Linting
parent
7c7af39f4b
commit
4f68edb3c7
|
@ -442,7 +442,7 @@ $(document).ready(function (){
|
||||||
blSocket.onopen = function (msg){
|
blSocket.onopen = function (msg){
|
||||||
};
|
};
|
||||||
var timeOutMinutes = 10;
|
var timeOutMinutes = 10;
|
||||||
setTimeout(function(){
|
setTimeout(function (){
|
||||||
$('#blockonomics_waiting').html('<b>Payment expired</b><br><br><b><a href=\'/checkout/payment\'>Click here</a></b> to try again.<br><br>If you already paid, your order will be processed automatically.');
|
$('#blockonomics_waiting').html('<b>Payment expired</b><br><br><b><a href=\'/checkout/payment\'>Click here</a></b> to try again.<br><br>If you already paid, your order will be processed automatically.');
|
||||||
showNotification('Payment expired', 'danger');
|
showNotification('Payment expired', 'danger');
|
||||||
blSocket.close();
|
blSocket.close();
|
||||||
|
@ -450,7 +450,7 @@ $(document).ready(function (){
|
||||||
|
|
||||||
var countdownel = $('#blockonomics_timeout');
|
var countdownel = $('#blockonomics_timeout');
|
||||||
var endDatebl = new Date((new Date()).getTime() + 1000 * 60 * timeOutMinutes);
|
var endDatebl = new Date((new Date()).getTime() + 1000 * 60 * timeOutMinutes);
|
||||||
var blcountdown = setInterval(function(){
|
var blcountdown = setInterval(function (){
|
||||||
var now = new Date().getTime();
|
var now = new Date().getTime();
|
||||||
var distance = endDatebl - now;
|
var distance = endDatebl - now;
|
||||||
if(distance < 0){
|
if(distance < 0){
|
||||||
|
@ -471,7 +471,7 @@ $(document).ready(function (){
|
||||||
showNotification('Payment detected', 'success');
|
showNotification('Payment detected', 'success');
|
||||||
$('#cart-count').html('0');
|
$('#cart-count').html('0');
|
||||||
blSocket.close();
|
blSocket.close();
|
||||||
$.ajax({ method: 'POST', url: '/product/emptycart' }).done(function(){
|
$.ajax({ method: 'POST', url: '/product/emptycart' }).done(function (){
|
||||||
window.location.replace('/payment/' + orderid);
|
window.location.replace('/payment/' + orderid);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue