Skip to content

Commit

Permalink
Remove loader and change zindex Closes woocommerce#3057
Browse files Browse the repository at this point in the history
  • Loading branch information
mikejolley committed May 1, 2013
1 parent b79b647 commit f07df1a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions classes/gateways/paypal/class-wc-gateway-paypal.php
Original file line number Diff line number Diff line change
Expand Up @@ -424,20 +424,22 @@ function generate_paypal_form( $order_id ) {

$woocommerce->add_inline_js( '
jQuery("body").block({
message: "<img src=\"' . esc_url( apply_filters( 'woocommerce_ajax_loader_url', $woocommerce->plugin_url() . '/assets/images/ajax-loader.gif' ) ) . '\" alt=\"Redirecting&hellip;\" style=\"float:left; margin-right: 10px;\" />'.__( 'Thank you for your order. We are now redirecting you to PayPal to make payment.', 'woocommerce' ).'",
message: "' . __( 'Thank you for your order. We are now redirecting you to PayPal to make payment.', 'woocommerce' ) . '",
baseZ: 99999,
overlayCSS:
{
background: "#fff",
opacity: 0.6
},
css: {
padding: 20,
padding: "20px",
zindex: "9999999",
textAlign: "center",
color: "#555",
border: "3px solid #aaa",
backgroundColor:"#fff",
cursor: "wait",
lineHeight: "32px"
lineHeight: "24px",
}
});
jQuery("#submit_paypal_payment_form").click();
Expand Down

0 comments on commit f07df1a

Please sign in to comment.