AntonLV 9 ani în urmă
părinte
comite
b83f9a1bc5
1 a modificat fișierele cu 6 adăugiri și 2 ștergeri
  1. 6 2
      inc/js/jquery.dolPopup.js

+ 6 - 2
inc/js/jquery.dolPopup.js

@@ -207,10 +207,14 @@
                 // show popup
                 $el.css({display: 'block', visibility: 'visible'});
                 if (o.fog) {
+                	var oOnHide = function() {
+                		$(window).triggerHandler('resize.popupFog');
+                	};
+                	
                     if (o.speed > 0)
-                        $('#bx-popup-fog').fadeIn(o.speed);
+                        $('#bx-popup-fog').fadeIn(o.speed, oOnHide);
                     else
-                        $('#bx-popup-fog').show();
+                        $('#bx-popup-fog').show(oOnHide);
                 }
 
                 setTimeout(function () {