[IMP] payment addons: fixed submit buttons: now have type=submit (and not image or...
authorThibault Delavallée <tde@openerp.com>
Tue, 27 May 2014 09:34:55 +0000 (11:34 +0200)
committerThibault Delavallée <tde@openerp.com>
Tue, 27 May 2014 09:35:32 +0000 (11:35 +0200)
commita6379e2e67ffa1436d818fd55f37faed4893a87a
treeaba45744e4a6bfc42c787002e71a4cdd4e72078c
parented51e843a20e2fea2b6f4f35527f5629071ff3b1
[IMP] payment addons: fixed submit buttons: now have type=submit (and not image or nothing) and removed name, because this may cause issues when trying to submit a form manually with type=submit and a name. Also improved js code in website_sale to correctly handle the click binding, the asynchronous call to the server to create the transaction, and then submit the form. As form submission is synchronous in javascript, we cannot use the deferred. Instead we prevent the click event from bubbling, wait for the server to create the transaction, adn then manually submit the form.
addons/payment_adyen/views/adyen.xml
addons/payment_ogone/views/ogone.xml
addons/payment_paypal/views/paypal.xml
addons/payment_transfer/views/transfer.xml
addons/website_sale/static/src/js/website_sale_payment.js