Replace deprecated event shorthands [MAILPOET-3386]

This commit is contained in:
wxa
2021-02-16 00:33:48 +03:00
committed by Veljko V
parent 9dcceb955d
commit c54f078cd1
24 changed files with 175 additions and 175 deletions

View File

@@ -423,11 +423,11 @@ MailPoet.Modal = {
},
focus: function () {
if (this.options.type === 'popup') {
jQuery('#mailpoet_' + this.options.type).focus();
jQuery('#mailpoet_' + this.options.type).trigger('focus');
} else {
// panel and subpanel
jQuery('#mailpoet_' + this.options.type + ' .mailpoet_panel_wrapper')
.filter(':visible').focus();
.filter(':visible').trigger('focus');
}
return this;
},