Changed show commands to display block for easy CSS

This commit is contained in:
Jacob Eva 2023-04-26 10:39:07 +01:00
parent d056060ace
commit 1f351231e5
No known key found for this signature in database
GPG Key ID: 0B92E083BBCCAA1E

View File

@ -36,28 +36,28 @@ function monero_updateDetails() {
jQuery('#monero_payment_messages').children().hide(); jQuery('#monero_payment_messages').children().hide();
switch(details.status) { switch(details.status) {
case 'unpaid': case 'unpaid':
jQuery('.monero_payment_unpaid').show(); jQuery('.monero_payment_unpaid').css("display", "block");
jQuery('.monero_payment_expire_time').html(details.order_expires); jQuery('.monero_payment_expire_time').html(details.order_expires);
break; break;
case 'partial': case 'partial':
jQuery('.monero_payment_partial').show(); jQuery('.monero_payment_partial').css("display", "block");
jQuery('.monero_payment_expire_time').html(details.order_expires); jQuery('.monero_payment_expire_time').html(details.order_expires);
break; break;
case 'paid': case 'paid':
jQuery('.monero_payment_paid').show(); jQuery('.monero_payment_paid').css("display", "block");
jQuery('.monero_confirm_time').html(details.time_to_confirm); jQuery('.monero_confirm_time').html(details.time_to_confirm);
jQuery('.button-row button').prop("disabled",true); jQuery('.button-row button').prop("disabled",true);
break; break;
case 'confirmed': case 'confirmed':
jQuery('.monero_payment_confirmed').show(); jQuery('.monero_payment_confirmed').css("display", "block");
jQuery('.button-row button').prop("disabled",true); jQuery('.button-row button').prop("disabled",true);
break; break;
case 'expired': case 'expired':
jQuery('.monero_payment_expired').show(); jQuery('.monero_payment_expired').css("display", "block");
jQuery('.button-row button').prop("disabled",true); jQuery('.button-row button').prop("disabled",true);
break; break;
case 'expired_partial': case 'expired_partial':
jQuery('.monero_payment_expired_partial').show(); jQuery('.monero_payment_expired_partial').css("display", "block");
jQuery('.button-row button').prop("disabled",true); jQuery('.button-row button').prop("disabled",true);
break; break;
} }