wimleers / edit-createjs

6 stars 4 forks source link

Form Based Editables: (third) superfluous XHR call after "Save" has been clicked #4

Closed frega closed 11 years ago

frega commented 12 years ago

The third request is executed after the editor has been "stopped" (stopEdit) and disabled.

The XHR-Response triggers Drupal.ajax.prototype.commands.edit_field_form in ajax.js which has a problem to "find" a form to "attach" to and Drupal.ajax then barfs.

Screenshot: https://dl.dropbox.com/u/176316/screenshot-edit-createjs-form-based-editables.png

bergie commented 11 years ago

The reason appears to be that we just click Submit on all the loaded forms instead of just the correct form.

wimleers commented 11 years ago

Yes, so much was wrong with all the Drupal.ajax/FAPI voodoo… :)

frega commented 11 years ago

Fixed with PR #6