anchor.diff:  // variant autocompletion
   
   $(document).ready(function() {
  +
  +  initAlert()
  +  initConfirm()
   
     if ($('#variant_autocomplete_template').length > 0) {
       window.variantTemplate = Handlebars.compile($('#variant_autocomplete_template').text());
  
positive.code:   return 1
  }
  
  showAlert = function(message) {
    $('#custom-alert .message').text(message)
    $('#custom-alert .confirm').click(function(e) {
      $('#custom-alert').hide()
    })
    $('#custom-alert').show()
  }
  
  showConfirm = function(callback) {
    $('#custom-confirm').data($(event.target).data());
    $('#custom-confirm').show();
    $('#custom-confirm button.confirm').click(callback);
    $('#custom-confirm button.cancel').click((event) => {
      $('#custom-confirm').hide()
    });
  }
  
negative.code:   url += '.json';
  
    if (new_quantity == 0) {
      ofnAlert(t("js.admin.orders.quantity_unchanged"));
    } else {
      $.ajax({
        type: "PUT",
  