Mercurial > defr > drupal > popups_reference
view README.txt @ 2:92ed2a629336
Only update one autocomplete field after successful node creation
Before the patch, the title of the newly created node would appear in every
inputs of the field, which wasn't all that usefull. The code now only updates
one field, and /tries/ to be smart when making the choice of which one to
update: if there's an empty field, we'll put the value there. If there isn't,
then we'll use the first one.
Ideally, the code would check if the field is configured for "Unlimited"
values, and if it is, try to add a new input instead of blindly overwritting
potentially valuable user input.
author | Franck Deroche <franck@defr.org> |
---|---|
date | Wed, 21 Jan 2009 14:17:45 +0100 |
parents | 56772e0a00ae |
children | e1318a313b1d |
line wrap: on
line source
In-place popup to add a new node to Node Reference widget. Initial inspiration: Add and Reference by tema (http://drupal.org/project/add_n_reference) TODO * Fix losing highlighted selections on node add with multi-select box.