Mercurial > defr > drupal > popups_reference
view popups_reference.info @ 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
; $Id: popups_reference.info,v 1.1.2.1 2008/12/23 22:38:21 starbow Exp $ name = Popups: Add & Reference description = In-place popup to add a new node to Node Reference widget. package = User interface core = 6.x dependencies[] = popups dependencies[] = content ; Information added by drupal.org packaging script on 2009-01-19 version = "6.x-1.x-dev" core = "6.x" project = "popups_reference" datestamp = "1232323985"