anchor.diff:    $('a.cancel-method').click(toggleMethodEdit);
   
     // handle shipping method save
  -  $('[data-hook=admin_shipment_form] a.save-method').on('click', function () {
  +  $('[data-hook=admin_shipment_form] a.save-method').on('click', function (event) {
  +    event.preventDefault();
  +
       var link = $(this);
       var shipment_number = link.data('shipment-number');
       var selected_shipping_rate_id = link.parents('tbody').find("select#selected_shipping_rate_id[data-shipment-number='" + shipment_number + "']").val();
  
positive.code:   prev_row.find('a.delete-item').toggle();
  }
  
  addVariantFromStockLocation = function() {
    $('#stock_details').hide();
  
    var variant_id = $('input.variant_autocomplete').val();
  
negative.code:   var link = $(this);
    link.parents('tbody').find('tr.edit-method').toggle();
    link.parents('tbody').find('tr.show-method').toggle();
  
    return false;
  }
  
  toggleItemEdit = function(){
  