[-] BO : Fix Bug For new Fancy Box events

This commit is contained in:
Jerome Nadaud
2013-09-23 11:22:51 +02:00
parent cf82157d47
commit 5206496f64
2 changed files with 4 additions and 4 deletions
@@ -48,11 +48,11 @@
<script type="text/javascript"> <script type="text/javascript">
$(document).ready(function() { $(document).ready(function() {
$("#group_discount_category").fancybox({ $("#group_discount_category").fancybox({
onStart: function () { beforeLoad: function () {
$('#group_discount_category_fancybox').show(); $('#group_discount_category_fancybox').show();
initFancyBox(); initFancyBox();
}, },
onClosed: function () { beforeClose: function () {
$('#group_discount_category_fancybox').hide(); $('#group_discount_category_fancybox').hide();
} }
}); });
+2 -2
View File
@@ -766,7 +766,7 @@ function multishippingMode(it)
'transitionIn': 'elastic', 'transitionIn': 'elastic',
'transitionOut': 'elastic', 'transitionOut': 'elastic',
'type': 'ajax', 'type': 'ajax',
'onClosed': function() 'beforeClose': function()
{ {
// Reload the cart // Reload the cart
$.ajax({ $.ajax({
@@ -783,7 +783,7 @@ function multishippingMode(it)
}); });
updateCarrierSelectionAndGift(); updateCarrierSelectionAndGift();
}, },
'onStart': function() 'beforeLoad': function()
{ {
// Removing all ids on the cart to avoid conflic with the new one on the fancybox // Removing all ids on the cart to avoid conflic with the new one on the fancybox
// This action could "break" the cart design, if css rules use ids of the cart // This action could "break" the cart design, if css rules use ids of the cart