Closed (fixed)
Project:
Address Field
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
16 Jan 2012 at 09:40 UTC
Updated:
16 May 2013 at 02:00 UTC
It could be very handy to add AJAX commands when chaging the country.
This patch makes this possible!
Right syntax will be:
function MYMODULE_checkout_addressfield_standard_widget_refresh_alter(&$commands, $form, $form_state) {
$commands[] = ajax_command_alert('it works!');
}
| Comment | File | Size | Author |
|---|---|---|---|
| addressfield_alter_country_refresh_ajax_callback.patch | 765 bytes | jeff.maes |
Comments
Comment #1
jeff.maes commentedComment #2
rszrama commentedI was thinking the same exact thing when I committed #1299504: Address field tab focus gets lost during AJAX refresh earlier today. : )
I just added this with some documentation in addressfield.api.php.
Commit: http://drupalcode.org/project/addressfield.git/commitdiff/94dff7a