add back action

This commit is contained in:
Nweni
2017-06-21 06:19:06 +06:30
parent 895e028e7c
commit 6272e07959
8 changed files with 34 additions and 19 deletions

View File

@@ -1,5 +1,5 @@
<div class="row">
<div class="col-lg-11col-md-11 col-sm-11">
<div >
<div >
<% @payment_method_setting.each do |payment_method|%>
@@ -8,6 +8,10 @@
</div>
</div>
</div>
<div class="col-lg-1 col-md-1 col-sm-1">
<button type="button" class="btn btn-primary btn-block" id='back'>Back</button>
</div>
</div>
<script type="text/javascript">
@@ -16,4 +20,8 @@ $('.others-payment').on('click',function(){
var sale_id = $(this).attr("data-sale-id");
window.location.href = '/origami/sale/'+ sale_id + "/payment/others_payment/" + input_type;
})
$('#back').on('click',function(){
window.location.href = '/origami/sale/<%= @sale_id %>/payment/';
})
</script>