ticket 10780 / clean fct modal

This commit is contained in:
Nolwenn 2016-11-17 09:33:54 +01:00
parent 61160044c6
commit 0d49309e1e

View File

@ -57,19 +57,17 @@
{literal}
<script>
function validCrosselling() {
$('.ajax_add_to_cart_button.hidden').click();
}
function unvalidCrosselling(){
return false;
}
$('.btn_crosselling').fancybox();
$(document).on('click', '#lightbox_crossselling #notAdd', function(){
$.fancybox.close();
});
$(document).on('click', '#lightbox_crossselling #add', function(){
$('.ajax_add_to_cart_button.hidden').click();
$(document).on('click', '#lightbox_crossselling .btn', function(){
if($(this).attr('id') == 'notAdd') {
$.fancybox.close();
} else if ($(this).attr('id') == 'add'){
$('.ajax_add_to_cart_button.hidden').click();
}
});
</script>
{/literal}