Needs review
Project:
Popups: Add and Reference
Version:
6.x-1.0
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
2 Oct 2009 at 01:42 UTC
Updated:
2 Oct 2009 at 01:42 UTC
The current behaviour of popups_reference with multi-value nodereference fields, is that it looks for an empty form element to populate with the newly-created reference, and if none is available, it simply overwrites the value of the first already-populated element. This is not ideal.
Attached patch does the following:
triggerHandler('mousedown') for the 'Add another item' button (if such a button is available).fadeTo() call, in order to delay this for 2 seconds. This is a bit of a hackish solution, but it's the only way I could ensure (albeit still not guarantee) that the AHAH callback for 'add another item' finishes before we try to populate it. Any other ideas are welcome. For now, this works pretty well for me.| Comment | File | Size | Author |
|---|---|---|---|
| popups_reference_trigger_handler.patch | 2.31 KB | Jaza |