I have enabled editable fields in a view.

When I click on an editable field and type a new value and hit the Return key, I get:

An AJAX HTTP request terminated abnormally.
Debugging information follows.
Path: /system/ajax
StatusText:
ResponseText:
ReadyState: 4

However, if I tab off, or click anywhere outside of the field, then it works properly.

Comments

arcane’s picture

I am getting the same error with 7.x-1.0-alpha2 version of code.

arcane’s picture

After further testing, I have noticed this only happens in Safari and not Firefox

arcane’s picture

I have a sinking suspicion this is due to pressing return in autocomplete fields, http://drupal.org/node/1232416

arcane’s picture

Applying patch #110 from http://drupal.org/node/1232416 prevents the error dialog from showing but the value of the field is reverted to its original value. So this is not an acceptable solution.

arcane’s picture

I have also ascertained that this only happens when in a view, does not happen when viewing editable fields in a full node.

arcane’s picture

Resolved this error by adding the following line to editablefields.js

if (this.selected && (keycode == 13 || keycode = 10) return false;

/**
 * Overridden from Drupal core autocomplete.js
 * Hides the autocomplete suggestions.
 */
Drupal.jsAC.prototype.hidePopup = function (keycode) {
  // Select item if the right key or mousebutton was pressed.
  if (this.selected && (keycode == 13 || keycode = 10) return false;
  if (this.selected && ((keycode && keycode != 46 && keycode != 8 && keycode != 27) || !keycode)) {
    this.input.value = $(this.selected).data('autocompleteValue');
    $(this.input).trigger('change');
  }
  // Hide popup.
  var popup = this.popup;
  if (popup) {
    this.popup = null;
    $(popup).fadeOut('fast', function () { $(popup).remove(); }); 
  }
  this.selected = false;
  $(this.ariaLive).empty();
};

})(jQuery);

This was just my quick and dirty fix, if anyone has a better way, please advise.

silverbell’s picture

I am getting the same error in Chrome & Firefox. I think my error is related to the overlay. I opened the same option in a new window (rather than the views popup dialog) and everything worked great, my change was saved, no errors.

arcane’s picture

ok, I had an error in my javascript, it's still not working at all.

Jochen Wendebaum’s picture

Has anyone solved this? I get exactly the same error on a page (og group page), while in a profile2 page it works.

fox mulder’s picture

Issue summary: View changes

I am getting this error in Chrome, but in Firefox it works well...