Fix console warning

[MAILPOET-2101]
This commit is contained in:
Pavel Dohnal
2019-06-20 09:13:32 +02:00
committed by M. Shull
parent 2af5610fae
commit 1552bb5515

View File

@@ -173,10 +173,10 @@ jQuery(document).ready(() => {
}
jQuery('.mailpoet_subscribers_data_parse_results_details_show')
.click((event) => {
.click(function detailsClick() {
const details = jQuery('.mailpoet_subscribers_data_parse_results_details');
jQuery(details).toggle();
event.currentTarget.text((jQuery(details).is(':visible'))
details.toggle();
jQuery(this).text((details.is(':visible'))
? MailPoet.I18n.t('hideDetails')
: MailPoet.I18n.t('showDetails'));
});