summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--js/geotaxonomy.admin.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/js/geotaxonomy.admin.js b/js/geotaxonomy.admin.js
index b45e4f2..93a2f6e 100644
--- a/js/geotaxonomy.admin.js
+++ b/js/geotaxonomy.admin.js
@@ -5,7 +5,7 @@
*/
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();
@@ -40,8 +40,8 @@ Drupal.geotaxonomy = {
'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 != '') {