Skip to content

Commit

Permalink
[FIX] website_sale: pending message do not disappear
Browse files Browse the repository at this point in the history
On the payment confirmation page, when the payment is still pending.

Before this commit:
the user friendly message disappeared and a warning icon took its place

After this commit, the warning icon is prepended to the message.

OPW 787799
  • Loading branch information
kebeclibre committed Jan 16, 2018
1 parent 6139840 commit a6e4c05
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion addons/website_sale/static/src/js/website_sale_validate.js
Expand Up @@ -21,7 +21,10 @@ $(document).ready(function () {
setTimeout(function () { payment_transaction_poll_status(); }, Math.ceil(_poll_nbr / 3) * 1000);
}
else {
result.message = "<i class='fa fa-warning' />";
var $message = $(result.message);
$message.find('span:first').prepend($(
"<i title='We are waiting the confirmation of the bank or payment provider' class='fa fa-warning' style='margin-right:10px;'>"));
result.message = $message.html();
}
}
$('div.oe_website_sale_tx_status').html(result.message);
Expand Down

0 comments on commit a6e4c05

Please sign in to comment.