update crm

This commit is contained in:
Aung Myo
2017-06-26 10:21:56 +06:30
parent d9c53e73f8
commit f426be57ab
5 changed files with 44 additions and 32 deletions

View File

@@ -130,8 +130,10 @@ $(document).on('click',".customer_tr",function(){
$('.selectpicker > option[value="'+data.membership_type+'"]').attr('selected','selected');
if (data.gender == 'Male') {
$('.male').prop( "checked", true )
$('.female').prop( "checked", false )
}else{
$('.female').prop( "checked", true )
$('.male').prop( "checked", false )
}
if(data.salutation == 'Mr') {
@@ -152,7 +154,6 @@ $(document).on('click',".customer_tr",function(){
$("#new_customer").attr('class', 'simple_form edit_customer');
var id = "edit_customer_"+customer_id;
alert(id)
$("#new_customer").attr('id', id);
$(".edit_customer").attr('id', id);