Closed (fixed)
Project:
Geocoder
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
11 Jun 2012 at 23:57 UTC
Updated:
13 Jul 2012 at 17:11 UTC
Jump to comment: Most recent file
Currently geocoder uses a custom approach for handling visibility of dependent fields. Other modules cannot easily modify or extend the visibility settings, e.g., to set an additional visibility condition.
Convert the code to use the standard Drupal 7 #states system.
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | use-states-followup-1627908-6.patch | 3.9 KB | nedjo |
| #2 | use_states-1627908-2.patch | 4.88 KB | plopesc |
Comments
Comment #1
phayes commentedI'm not familiar with the new #states system nedjo. I'll give it a shot, but if you have a patch up your sleeve... :-)
~Patrick
Comment #2
plopescPatch attached
now it could work with '#states'
Regards
Comment #3
phayes commentedCommited. Thanks Nedjo
Comment #4
phayes commentedErrrr, I meant, "Thanks plopesc"
Comment #5
phayes commentedErrrr, I meant, "Thanks plopesc"
Comment #6
nedjoDependent fields aren't being updated after geocoder_handler changes. Attached patch triggers .change() to fix this.
Also tweaks the admin js to more closely follow Drupal js conventions:
Comment #7
phayes commentedcommitted. Thanks.