In some circumstances clicking apply button in dnd widget the editor gives a ajax submit is not a function and outputs the results as json.
@afox debugged and finally solved this by adding dependencies to jquery.form and drupal.ajax
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 1928490-2.patch | 518 bytes | jcisio |
| #1 | 1928490-scald-json-search-error.patch | 558 bytes | wroxbox |
Comments
Comment #1
wroxbox commentedand here is the patch.
Comment #2
jcisio commentedI can't reproduce this. However with this patch, I check and in fact there was a bug with commit in #1903628: Incompatibility with jQuery update module (it would be really difficult to debug, a big thanks!).
Could you test the attached patch?
Comment #3
jcisio commentedWhile I can't reproduce the bug, the patch #2 is "obviously" correct, so I tested again and committed it. I gave credit to @afox because without the original patch, it would take me hours if I were to debug. Thanks.
Comment #4
afox commentedThanks @jcsio,
FYI, I traced the bug to core's ajax.inc, line 681:
This is in ajax_pre_render_element() which, I believe, processes ajax enabled elements in the form. So, if there's no ajaxified fields, the libraries are never added.