$('#option-user, #option-producer').change(function() { | $('#option-user, #option-producer').change(function() { | ||||
opendistrib_signup_fields_producer() ; | opendistrib_signup_fields_producer() ; | ||||
}) ; | }) ; | ||||
opendistrib_signup_code_producer() ; | |||||
$('#signupform-id_producer').change(function() { | |||||
opendistrib_signup_code_producer() ; | |||||
}) ; | |||||
} | } | ||||
} | } | ||||
} | } | ||||
} | } | ||||
function opendistrib_signup_code_producer() { | |||||
if($('#signupform-id_producer option:selected').hasClass('lock')){ | |||||
$('#bloc-code-acces').fadeIn() ; | |||||
} | |||||
else { | |||||
$('#bloc-code-acces').hide() ; | |||||
} | |||||
} | |||||
$favoritePointSale = User::getCurrent()->getFavoritePointSale() ; | $favoritePointSale = User::getCurrent()->getFavoritePointSale() ; | ||||
if($favoritePointSale) { | |||||
/*if($favoritePointSale) { | |||||
$newPointSaleArray = [] ; | $newPointSaleArray = [] ; | ||||
foreach($pointsSaleArray as $pointSale) { | foreach($pointsSaleArray as $pointSale) { | ||||
} | } | ||||
else { | else { | ||||
$newPointSaleArray = $pointsSaleArray ; | $newPointSaleArray = $pointsSaleArray ; | ||||
} | |||||
}*/ | |||||
$newPointSaleArray = $pointsSaleArray ; | |||||
$json['points_sale'] = $newPointSaleArray; | $json['points_sale'] = $newPointSaleArray; | ||||
base_url += $('meta[name=slug-producer]').attr('content')+'/' ; | base_url += $('meta[name=slug-producer]').attr('content')+'/' ; | ||||
} | } | ||||
return base_url ; | return base_url ; | ||||
} | |||||
} |