Postponed (maintainer needs more info)
Project:
Ajax
Version:
6.x-1.14
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
21 Apr 2011 at 18:52 UTC
Updated:
21 Jan 2012 at 08:51 UTC
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
Comment #1
brendoncrawford commentedaiquandol, if you can put this into a patch, i will apply it.