In order to allow other modules to react to errors, this module can easily trigger an event, so those modules can bind handlers to that event.

For instance, here's a sample snippet for responding to an error:

  // Bind error handling.
  $('div.editablefields', context).bind('editablefieldsError', function (Event, element, response) {
    alert('Reacting to an editablefields error');
  });

Patch forthcoming.

Comments

jhedstrom’s picture

Status: Active » Needs review
StatusFileSize
new1.52 KB

This patch triggers an 'editablefieldsError' event when fields are unsuccessfully updated.

jhedstrom’s picture

Version: 6.x-1.x-dev » 6.x-2.x-dev
StatusFileSize
new1.48 KB

Re-rolling for 2.x dev

mengi’s picture

Issue summary: View changes
Status: Needs review » Closed (won't fix)

Per https://drupal.org/node/2148735, 6.x is longer maintained so issue is closed. If you wish to be a maintainer of the 6.x branch please create a new issue.