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} {literal}
<script> <script>
function validCrosselling() {
$('.ajax_add_to_cart_button.hidden').click();
}
function unvalidCrosselling(){
return false;
}
$('.btn_crosselling').fancybox(); $('.btn_crosselling').fancybox();
$(document).on('click', '#lightbox_crossselling #notAdd', function(){ $(document).on('click', '#lightbox_crossselling .btn', function(){
if($(this).attr('id') == 'notAdd') {
$.fancybox.close(); $.fancybox.close();
}); } else if ($(this).attr('id') == 'add'){
$(document).on('click', '#lightbox_crossselling #add', function(){
$('.ajax_add_to_cart_button.hidden').click(); $('.ajax_add_to_cart_button.hidden').click();
}
}); });
</script> </script>
{/literal} {/literal}