anchor.diff:      });
   
       $(":input", row).change(function (event) {
  -      if (change) {
  -        var name = $(this).attr('name');
  -        $("[name=live_type]").attr('value', name == 'destination[lat]' || name == 'destination[lng]' ? 'lat-lng' : 'address');
  -        $.ajax({
  -          type: "patch",
  -          data: $(row).serialize(),
  -          url: '/destination/geocode.json',
  -          beforeSend: beforeSendWaiting,
  -          success: function (data) {
  -            update(id, data);
  -          },
  -          complete: completeWaiting,
  -          error: ajaxError
  -        });
  -      }
  +      var name = $(this).attr('name');
  +      $("[name=live_type]").attr('value', name == 'destination[lat]' || name == 'destination[lng]' ? 'lat-lng' : 'address');
  +      $.ajax({
  +        type: "patch",
  +        data: $(row).serialize(),
  +        url: '/destination/geocode.json',
  +        beforeSend: beforeSendWaiting,
  +        success: function (data) {
  +          update(id, data);
  +        },
  +        complete: completeWaiting,
  +        error: ajaxError
  +      });
  +    });
  +
  +    var formatNoMatches = I18n.t('web.select2.empty_result');
  +    $('select[name=destination\\[tag_ids\\]\\[\\]]').select2({
  +      formatNoMatches: function () { return formatNoMatches; },
  +      width: '100%'
       });
   
       $('.pointing', row).click(function (event) {
  
positive.code: 
    function update(destination_id, destination) {
      var row = $('[data-destination_id=' + destination_id + ']');
      change = false;
      $('[name=destination\\[name\\]]', row).val(destination.name);
      $('[name=destination\\[street\\]]', row).val(destination.street);
      $('[name=destination\\[postalcode\\]]', row).val(destination.postalcode);
      $('[name=destination\\[city\\]]', row).val(destination.city);
      $('[name=destination\\[lat\\]]', row).val(destination.lat);
      $('[name=destination\\[lng\\]]', row).val(destination.lng);
      change = true;
      marker.setLatLng(new L.LatLng(destination.lat, destination.lng));
      map.setView(marker.getLatLng(), 16);
      row = $('[data-destination_id=' + destination_id + ']');
  
negative.code:     complete: completeWaiting,
      error: ajaxError
    });
  
    $("#dialog-geocoding").dialog({
      autoOpen: false,
      modal: true
    });
  }
  
  Paloma.controller('Destination').prototype.index = function () {
    destinations_index(this.params);
  };
  