spree-contrib / spree_related_products

Related products extension for Spree Commerce.

Home Page:http://guides.spreecommerce.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Admin related product delete issue

twmulloy opened this issue · comments

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.

screen shot 2014-08-26 at 8 40 32 am