diff options
| author | Thibault Delavallée <tde@openerp.com> | 2014-05-27 11:34:55 +0200 |
|---|---|---|
| committer | Thibault Delavallée <tde@openerp.com> | 2014-05-27 11:35:32 +0200 |
| commit | a6379e2e67ffa1436d818fd55f37faed4893a87a (patch) | |
| tree | aba45744e4a6bfc42c787002e71a4cdd4e72078c /addons/payment_transfer | |
| parent | ed51e843a20e2fea2b6f4f35527f5629071ff3b1 (diff) | |
[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.
Diffstat (limited to 'addons/payment_transfer')
| -rw-r--r-- | addons/payment_transfer/views/transfer.xml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/payment_transfer/views/transfer.xml b/addons/payment_transfer/views/transfer.xml index ddb45d32e8d..e972677a4a1 100644 --- a/addons/payment_transfer/views/transfer.xml +++ b/addons/payment_transfer/views/transfer.xml @@ -11,7 +11,7 @@ <input type='hidden' name='amount' t-att-value='amount or "0.0"'/> <input type='hidden' name='currency' t-att-value='currency.name'/> <!-- submit --> - <button name="submit" width="100px" + <button type="submit" width="100px" t-att-class="submit_class"> <img t-if="not submit_txt" src="/payment_transfer/static/src/img/transfer_icon.png"/> <span t-if="submit_txt"><t t-esc="submit_txt"/> <span class="fa fa-long-arrow-right"/></span> |
