ticket 10780 / clean fct modal
This commit is contained in:
parent
61160044c6
commit
0d49309e1e
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user