Sometimes the AJAX module has trouble binding the "enter" key to forms.

We discovered this has to do with line 44 in ajax.js. In the javscript, you're referencing the form's #edit-submit element. However, in drupal if there are multiple forms on a page #edit-submit will be appended with a number, so the form's submit button could also be #edit-submit-1, #edit-submit-12, etc.

I strongly suggest using a more flexible selector here, like this one:

this.ajax_activator = $('input.form-submit[id^=edit-submit]', this);

Thanks for a great module!

Comments

brendoncrawford’s picture

Status: Active » Postponed (maintainer needs more info)

aiquandol, if you can put this into a patch, i will apply it.