aboutsummaryrefslogtreecommitdiffstats
path: root/app/assets/javascripts/access_points.coffee
diff options
context:
space:
mode:
authorjpl2017-03-16 16:42:38 +0100
committerjpl2017-03-16 16:42:46 +0100
commitc6bfb5a83f040695760fd29330bc2953f2b695be (patch)
tree47d93655c4b2b5969aa008aaeee6ce932e9ac73a /app/assets/javascripts/access_points.coffee
parent699c5d97f767c052fc78f7f8c694fa3d4721c580 (diff)
downloadchouette-core-c6bfb5a83f040695760fd29330bc2953f2b695be.tar.bz2
Massive JS gardening, removing old & unused
Diffstat (limited to 'app/assets/javascripts/access_points.coffee')
-rw-r--r--app/assets/javascripts/access_points.coffee32
1 files changed, 0 insertions, 32 deletions
diff --git a/app/assets/javascripts/access_points.coffee b/app/assets/javascripts/access_points.coffee
deleted file mode 100644
index 56ae24d1e..000000000
--- a/app/assets/javascripts/access_points.coffee
+++ /dev/null
@@ -1,32 +0,0 @@
-jQuery ->
- x_y_change = (event) ->
- c = $('input#access_point_coordinates').val().split(",")
- if c.length == 2
- if referential_projection != undefined
- referential_point = new OpenLayers.Geometry.Point(c[1], c[0]).transform(new OpenLayers.Projection("EPSG:4326"), referential_projection )
-
- $('input#access_point_projection_xy').val(referential_point.x.toString()+","+referential_point.y.toString())
-
- feature = map.getLayersByName("access_point")[0].getFeatureByFid($('input#access_point_id').val())
- google_point = new OpenLayers.LonLat(c[1], c[0]).transform(new OpenLayers.Projection("EPSG:4326"), map.getProjectionObject())
- feature.move(google_point)
- map.setCenter(google_point, 16, false, true)
-
- $('input#access_point_coordinates').change(x_y_change)
-
- lon_lat_change = (event) ->
- c = $('input#access_point_projection_xy').val().split(",")
- if c.length == 2
- if referential_projection != undefined
- wgs84_point = new OpenLayers.Geometry.Point(c[0], c[1]).transform(referential_projection, new OpenLayers.Projection("EPSG:4326"))
-
- $('input#access_point_coordinates').val( wgs84_point.y.toString()+","+wgs84_point.x)
-
- feature = map.getLayersByName("access_point")[0].getFeatureByFid($('input#access_point_id').val())
- google_point = new OpenLayers.LonLat(wgs84_point.x, wgs84_point.y).transform(new OpenLayers.Projection("EPSG:4326"), map.getProjectionObject())
- feature.move(google_point)
- map.setCenter(google_point, 16, false, true)
-
- $('input#access_point_projection_xy').change(lon_lat_change)
-
-