Fix parseInt typo

[MAILPOET-1474]
This commit is contained in:
Pavel Dohnal
2018-08-21 11:50:34 +02:00
parent 0d28fe1464
commit 8f85ef6fb3

View File

@@ -130,7 +130,7 @@ define(
MailPoet.Modal.loading(false); MailPoet.Modal.loading(false);
}).done(function done(response) { }).done(function done(response) {
var resultMessage = MailPoet.I18n.t('exportMessage') var resultMessage = MailPoet.I18n.t('exportMessage')
.replace('%1$s', '<strong>' + parseInt(response.data.totalExported, 133).toLocaleString() + '</strong>') .replace('%1$s', '<strong>' + parseInt(response.data.totalExported, 10).toLocaleString() + '</strong>')
.replace('[link]', '<a href="' + response.data.exportFileURL + '" target="_blank" >') .replace('[link]', '<a href="' + response.data.exportFileURL + '" target="_blank" >')
.replace('[/link]', '</a>'); .replace('[/link]', '</a>');
jQuery('#export_result_notice').html('<p>' + resultMessage + '</p>').show(); jQuery('#export_result_notice').html('<p>' + resultMessage + '</p>').show();