- Uses dependency injection for Select2 library

This commit is contained in:
Vlad
2016-12-03 19:18:17 -05:00
parent 732ea59e34
commit 98812834f6
2 changed files with 5 additions and 3 deletions

View File

@@ -10,7 +10,8 @@ define(
_,
jQuery,
MailPoet,
Handlebars
Handlebars,
select2
) {
if (!jQuery("#mailpoet_subscribers_export").length) {
return;
@@ -97,7 +98,7 @@ define(
// set confirmed subscribers export option to false
exportData.exportConfirmedOption = false;
renderSegmentsAndFields(subscriberFieldsContainerElement, subscriberFieldsSelect2);
renderSegmentsAndFields(segmentsContainerElement, segments);

View File

@@ -18,7 +18,8 @@ define(
Handlebars,
Papa,
AsyncQueue,
Moment
Moment,
select2
) {
if (!jQuery('#mailpoet_subscribers_import').length) {
return;