Fix eslint rules
[MAILPOET-1348]
This commit is contained in:
@@ -354,13 +354,13 @@ define('modal', ['mailpoet', 'jquery'],
|
|||||||
case 'popup':
|
case 'popup':
|
||||||
screenWidth = jQuery(window).width();
|
screenWidth = jQuery(window).width();
|
||||||
screenHeight = jQuery(window).height();
|
screenHeight = jQuery(window).height();
|
||||||
modalWidth = jQuery('.mailpoet_'+ this.options.type +'_wrapper').width();
|
modalWidth = jQuery('.mailpoet_' + this.options.type + '_wrapper').width();
|
||||||
modalHeight = jQuery('.mailpoet_'+ this.options.type +'_wrapper').height();
|
modalHeight = jQuery('.mailpoet_' + this.options.type + '_wrapper').height();
|
||||||
|
|
||||||
// set position of popup depending on screen dimensions.
|
// set position of popup depending on screen dimensions.
|
||||||
jQuery('#mailpoet_popup').css({
|
jQuery('#mailpoet_popup').css({
|
||||||
top: Math.max(48, parseInt((screenHeight / 2) - (modalHeight / 2))),
|
top: Math.max(48, parseInt((screenHeight / 2) - (modalHeight / 2), 10)),
|
||||||
left: Math.max(0, parseInt((screenWidth / 2) - (modalWidth / 2)))
|
left: Math.max(0, parseInt((screenWidth / 2) - (modalWidth / 2), 10))
|
||||||
});
|
});
|
||||||
break;
|
break;
|
||||||
case 'panel':
|
case 'panel':
|
||||||
|
Reference in New Issue
Block a user