*/
Drupal.behaviors.geotaxonomy = function(context) {
// Update map positioning when text fields are changed.
- $("#edit-lat:not(.geotaxonomy-ui-processed), $edit-lon:not(.geotaxonomy-ui-processed)").each(function() {
+ $("#edit-lat:not(.geotaxonomy-ui-processed), #edit-lon:not(.geotaxonomy-ui-processed)").each(function() {
$(this).addClass('geotaxonomy-ui-processed');
$(this).change(function() {
Drupal.geotaxonomy.updateMapCenter();
'updateMapCenter': function() {
var data = $('#geotaxonomy-latlon-helpmap').data('openlayers');
if (data) {
- var lat = $('#geotaxonomy-form-lat').val();
- var lon = $('#geotaxonomy-form-lon').val();
+ var lat = $('#edit-lat').val();
+ var lon = $('#edit-lon').val();
// Check for lat and lon
if (lat != '' && lon != '') {