enabling body scroll when settings are open

This commit is contained in:
Amine Ben hammou
2017-10-23 16:01:28 +00:00
parent b2324db7b4
commit 6858b266fe

View File

@ -386,9 +386,6 @@ define('modal', ['mailpoet', 'jquery'],
// remember the previously focused element
this.prevFocus = jQuery(':focus');
// add a flag on the body so that we can prevent scrolling
jQuery('body').addClass('mailpoet_modal_opened');
// show popup
jQuery('#mailpoet_' + this.options.type).show();
@ -448,9 +445,6 @@ define('modal', ['mailpoet', 'jquery'],
// remove class on highlighted elements
this.highlightOff();
// remove class from body to let it be scrollable
jQuery('body').removeClass('mailpoet_modal_opened');
return this;
},
showOverlay: function () {