Fix closing of Image, ALC and Posts sidepanels on "Done" click
This commit is contained in:
@ -238,6 +238,7 @@ define([
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
onBeforeDestroy: function() {
|
onBeforeDestroy: function() {
|
||||||
|
base.BlockSettingsView.prototype.onBeforeDestroy.apply(this, arguments);
|
||||||
// Force close select2 if it hasn't closed yet
|
// Force close select2 if it hasn't closed yet
|
||||||
this.$('.mailpoet_automated_latest_content_categories_and_tags').select2('close');
|
this.$('.mailpoet_automated_latest_content_categories_and_tags').select2('close');
|
||||||
},
|
},
|
||||||
|
@ -327,6 +327,7 @@ define([
|
|||||||
this._mediaManager.open();
|
this._mediaManager.open();
|
||||||
},
|
},
|
||||||
onBeforeDestroy: function() {
|
onBeforeDestroy: function() {
|
||||||
|
base.BlockSettingsView.prototype.onBeforeDestroy.apply(this, arguments);
|
||||||
if (typeof this._mediaManager === 'object') {
|
if (typeof this._mediaManager === 'object') {
|
||||||
this._mediaManager.remove();
|
this._mediaManager.remove();
|
||||||
}
|
}
|
||||||
|
@ -304,6 +304,7 @@ define([
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
onBeforeDestroy: function() {
|
onBeforeDestroy: function() {
|
||||||
|
base.BlockSettingsView.prototype.onBeforeDestroy.apply(this, arguments);
|
||||||
// Force close select2 if it hasn't closed yet
|
// Force close select2 if it hasn't closed yet
|
||||||
this.$('.mailpoet_posts_categories_and_tags').select2('close');
|
this.$('.mailpoet_posts_categories_and_tags').select2('close');
|
||||||
},
|
},
|
||||||
|
Reference in New Issue
Block a user