$('#actions').append('<%= escape_javascript( render(:partial => 'spree/admin/promotions/promotion_action', :object => @promotion_action) ) %>');
$('#actions .no-objects-found').hide();
$(document).ready(function(){
  $(".variant_autocomplete").variantAutocomplete();
});
initProductActions();

//enable select2 functions for recently added box
$('.type-select.select2').last().select2();

$('#<%= dom_id @promotion_action %>').hide();
$('#<%= dom_id @promotion_action %>').fadeIn();


$('#actions').append('<%= escape_javascript( render(:partial => 'spree/admin/promotions/promotion_action', :object => @promotion_action) ) %>');
$('#actions .no-objects-found').hide();
$(document).ready(function(){
  $(".variant_autocomplete").variantAutocomplete();
  //enable select2 functions for recently added box
  $('.type-select.select2').last().select2();
});
initProductActions();


$('#<%= dom_id @promotion_action %>').hide();
$('#<%= dom_id @promotion_action %>').fadeIn();


Enable select2 box for latest promo action upon create
[promo] Enable select2 box for latest promo action upon create
