← All changes
|
includes/extensions/Popup_Builder/preview-handler.js
+4
-1
51.1.36
→
51.1.87
View file →
| @@ -41,10 +41,13 @@ | ||
| 41 | 41 | |
| 42 | 42 | if (model.changed.hasOwnProperty('popup_animation')) { |
| 43 | 43 | let popupContainer = popup.find('.king-addons-pb-popup-container'); |
| 44 | 44 | |
| 45 | + // Avoid conflict with Bootstrap's `.fade` class. | |
| 46 | + const animationClass = (model.changed['popup_animation'] === 'fade') ? 'fadeIn' : model.changed['popup_animation']; | |
| 47 | + | |
| 45 | 48 | popupContainer.removeAttr('class'); |
| 46 | - popupContainer.addClass('king-addons-pb-popup-container animated ' + model.changed['popup_animation']); | |
| 49 | + popupContainer.addClass('king-addons-pb-popup-container animated ' + animationClass); | |
| 47 | 50 | } |
| 48 | 51 | }, |
| 49 | 52 | |
| 50 | 53 | fixPopupLayout: function (popup) { |