Skip to content

Commit

Permalink
MAGETWO-52107: After clicking "X" sign on billing agreement pop up cu…
Browse files Browse the repository at this point in the history
…stomer is redirected to PayPal
  • Loading branch information
oshmyheliuk committed Apr 21, 2016
1 parent 8fce4ae commit ea90441
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions app/code/Magento/Paypal/view/frontend/web/js/paypal-checkout.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,17 +54,16 @@ define([
* Cancel confirmation handler
*
*/
cancel: function () {
self._redirect(returnUrl);
cancel: function (event) {
if (event && !$(event.target).hasClass('action-close')) {
self._redirect(returnUrl);
}
}
}
});

return false;
} else {
this._redirect(returnUrl, originalForm);
}

this._redirect(returnUrl, originalForm);

}, this));
},

Expand Down

0 comments on commit ea90441

Please sign in to comment.