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.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | editablefields-1392986-02-trigger-error.patch | 1.48 KB | jhedstrom |
| #1 | editablefields-1392986-01-trigger-error.patch | 1.52 KB | jhedstrom |
Comments
Comment #1
jhedstromThis patch triggers an 'editablefieldsError' event when fields are unsuccessfully updated.
Comment #2
jhedstromRe-rolling for 2.x dev
Comment #3
mengi commentedPer 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.