class AjaxpopupController extends CubeIT_Controller_AjaxpopupController {
public function quoteForm() {
- $this->setPopupMaxWidth('1440');
- $this->setPopupPadding('20');
- $this->setVerticalMargin('20');
+ $this->setPopupMaxWidth(1440);
+ $this->setPopupPadding(20);
+ $this->setVerticalMargin(20);
+ $this->setOverlayOpacity(0.5);
return $this->view->quoteForm('requestQuotePopup'); // Different ID for popup form so it doesn't conflict with contact page form
}
return true;\r
});\r
\r
+ // Allow different styling (background blurring) when popup is open\r
+ $(window).on('cubeitopenpopup', function() {\r
+ $('body').addClass('popupOpen'); // Add class so we can blur the background\r
+ });\r
+ $(window).on('cubeitpopupremoved', function() {\r
+ $('body').removeClass('popupOpen');\r
+ });\r
\r
$(window).on('cubeitresize', _resize);\r
_resize();\r
$.scrollify.move($(this).data('section'));\r
});\r
\r
- // Handle clicks to AJAX popups and disable scrollify when they open\r
- // because it interferes with internal popup scrolling\r
- $(document).on('click', '.popup', function () {\r
+ // Disable scrollify when popups are open because it\r
+ // interferes with internal popup scrolling\r
+ $(window).on('cubeitopenpopup', function() {\r
disableScrollify();\r
});\r
- $(document).on('click', '.closePopup', function () {\r
+ $(window).on('cubeitpopupremoved', function() {\r
resizeHome(); // Update layout and re-enable scrollify if space requirements are met\r
});\r
}\r
opacity: 0;\r
transition: opacity @transition-time-buttons;\r
\r
+ &.popupOpen {\r
+ #mm-0, #h {\r
+ filter: blur(5px);\r
+ }\r
+ }\r
+\r
.wf-active & {\r
opacity: 1;\r
}\r