Reset columns_selector before caching the page
This will allow to initialize this module again without duplicating columns checkboxes and without breaking the page.
This commit is contained in:
@@ -85,6 +85,9 @@
|
||||
$(".column-selectable").on("inserted", function() {
|
||||
App.ColumnsSelector.initColumns();
|
||||
});
|
||||
},
|
||||
destroy: function() {
|
||||
$("#js-columns-selector-wrapper").children(":not(#column_selector_item_template)").remove();
|
||||
}
|
||||
};
|
||||
}).call(this);
|
||||
|
||||
Reference in New Issue
Block a user