fix atos prod

This commit is contained in:
ToutPratique 2017-04-26 15:56:09 +02:00
parent 0fb722b3a9
commit 950da342ac
2 changed files with 5 additions and 3 deletions

View File

@ -2,7 +2,7 @@
<div class="col-xs-1 col-xxs-3">
<div class="rounded-radio">
<div class="hidden">{$atos}</div>
<input class="custom-input inline" type="radio" value="" title="{l s='Payer par carte bancaire' mod='atos'}" name="paiement-method">
<input class="custom-input inline atos" type="radio" value="" title="{l s='Payer par carte bancaire' mod='atos'}" name="paiement-method">
</div>
</div>
<div class="col-xs-4">

View File

@ -155,8 +155,10 @@
if($input.val())
{
window.location = $input.val()
}
else if($input.attr('id') == 'payzenRadio') {
} else if ($input.hasClass('atos')) {
$form = $input.parent().prev('div.hidden').children('form');
$form.find('input[name="CB"]').trigger('click');
} else if($input.attr('id') == 'payzenRadio') {
$('#payzen_standard').submit();
} else {
$form = $input.parent().prev('div.hidden').children('form');