[FIX] website_sale: checkout process: fixed carrier choice redirection

bzr revid: tde@openerp.com-20131219105122-awib6gys6uklbvxa
This commit is contained in:
Thibault Delavallée 2013-12-19 11:51:22 +01:00
parent 348a2bda96
commit 86fc66e797
2 changed files with 1 additions and 6 deletions

View File

@ -4,9 +4,7 @@ $(document).ready(function () {
var $carrier = $("#delivery_carrier");
$carrier.find("input[name='delivery_type']").click(function (ev) {
var carrier_id = $(ev.currentTarget).val();
var link = $carrier.find('a');
link.attr('href', '/shop/payment?carrier_id=' + carrier_id);
window.location.href = link.attr('href');
window.location.href = '/shop/payment?carrier_id=' + carrier_id;
});
});

View File

@ -52,9 +52,6 @@
</li>
</ul>
</div>
<!-- <div class="col-lg-3 col-sm-3">
<a t-href="/shop/payment"><button class="btn btn-primary">Update</button></a>
</div> -->
</div>
</xpath>
</template>