anchor.diff:    prev_row.find('a.delete-item').toggle();
   }
   
  -addVariantFromStockLocation = function() {
  +addVariantFromStockLocation = function(event) {
  +  event.preventDefault();
  +
     $('#stock_details').hide();
   
     var variant_id = $('input.variant_autocomplete').val();
  
positive.code:   });
  
    //handle delete click
    $('a.delete-item').click(function(){
      if (confirm(Spree.translations.are_you_sure_delete)) {
        var del = $(this);
        var shipment_number = del.data('shipment-number');
  
negative.code:       toggleItemEdit();
        adjustShipmentItems(shipment_number, variant_id, 0);
      }
      return false;
    });
  
    // handle ship click
  