diff options
| author | Bruno Perles | 2016-01-06 14:29:31 +0100 |
|---|---|---|
| committer | Bruno Perles | 2016-01-07 09:28:50 +0100 |
| commit | 3e878ec91ac0c10a354a728806bc405a57c0e491 (patch) | |
| tree | 0818a1205d0db2c32fdefc16c8c0f7dd6699efd3 | |
| parent | 3690e949c87f7a10e77b4e2a49ad05a8e08ff989 (diff) | |
| download | chouette-core-3e878ec91ac0c10a354a728806bc405a57c0e491.tar.bz2 | |
Update afterfeaturemodified to featuremodified : #40946
| -rw-r--r-- | app/maps/access_point_map.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/maps/access_point_map.rb b/app/maps/access_point_map.rb index 0103d9edb..3f0013738 100644 --- a/app/maps/access_point_map.rb +++ b/app/maps/access_point_map.rb @@ -21,7 +21,7 @@ class AccessPointMap < ApplicationMap # TODO virer ce code inline page << <<EOF edit_access_point_layer.events.on({ - 'afterfeaturemodified': function(event) { + 'featuremodified': function(event) { geometry = event.feature.geometry.clone().transform(new OpenLayers.Projection("EPSG:900913"), new OpenLayers.Projection("EPSG:4326")); $('#access_point_coordinates').val(geometry.y.toString()+ ","+ geometry.x.toString()); |
