diff --git a/app/views/crm/customers/index.html.erb b/app/views/crm/customers/index.html.erb index f3819466..bff00d82 100644 --- a/app/views/crm/customers/index.html.erb +++ b/app/views/crm/customers/index.html.erb @@ -138,6 +138,8 @@ $(function() { $(document).on('click',".customer_tr",function(){ // if(this.checked){ + $(this).closest('tr').find('.checkbox_check').prop( "checked", true ); + //$( "#checkbox_check" ).prop( "checked", true ); var sale_id = $("#sale_id").val() || 0; var customer_id = $(this).attr('data-ref'); diff --git a/app/views/origami/customers/index.html.erb b/app/views/origami/customers/index.html.erb index 1c6bebaa..b58ca35a 100644 --- a/app/views/origami/customers/index.html.erb +++ b/app/views/origami/customers/index.html.erb @@ -136,7 +136,7 @@ $(document).on('click',".customer_tr",function(){ // if(this.checked){ - + $(this).closest('tr').find('.checkbox_check').prop( "checked", true ); var sale_id = $("#sale_id").val() || 0; var customer_id = $(this).attr('data-ref'); diff --git a/app/views/origami/payments/show.html.erb b/app/views/origami/payments/show.html.erb index 1eb547e6..490ec341 100644 --- a/app/views/origami/payments/show.html.erb +++ b/app/views/origami/payments/show.html.erb @@ -93,7 +93,7 @@