Admin related product delete issue
twmulloy opened this issue · comments
Thomas Mulloy commented
2-3-stable
when in the admin and deleting a related product the page glitches out and in the js console this error Uncaught TypeError: undefined is not a function
that refers to this script but it is seemingly unrelated:
jQuery(function($) {
// Make select beautiful
$('select.select2').select2({
allowClear: true,
dropdownAutoWidth: true
});
function format_taxons(taxon) {
new_taxon = taxon.text.replace('->', '<i class="fa fa-arrow-right">')
return new_taxon;
}
$("#product_taxon_ids").on({
change: function(e){
$('.select2-search-choice .with-tip').powerTip({
smartPlacement: true,
fadeInTime: 50,
fadeOutTime: 50
})
}
})
})
;
appears that the response is being injected into the wrong element.