[contributions:bdragon] /modules/gmap/js gmap.js
User: bdragon Branch: HEAD Date: Tue, 01 Dec 2009 19:47:53 +0000 Modified files: /modules/gmap/js gmap.js Log message: Add a way to bind controls that we aren't able to set the id/classes on from the Drupal side. This lets us work around the fact that gmap_widget_setup() completely fails to work on CCK fields. Example: <code> $remap = array( 'edit-field-latitude-0-value' => array('classes' => array('gmap-locpick_latitude'), 'id' => 'gmap-loc0-locpick_latitude0'), 'edit-field-longitude-0-value' => array('classes' => array('gmap-locpick_longitude'), 'id' => 'gmap-loc0-locpick_longitude0'), 'edit-field-address-0-value' => array('classes' => array('gmap-locpick_address'), 'id' => 'gmap-loc0-locpick_address0'), ); drupal_add_js(array('gmap_remap_widgets' => $remap), 'setting'); /* ... stuff copied from gmap_set_location(), etc... */ </code> Links: http://cvs.drupal.org/diff.php?path=contributions/modules/gmap/js/gmap.js&ol...
participants (1)
-
drupal-cvs@drupal.org