aboutsummaryrefslogtreecommitdiffstats
path: root/app/assets/javascripts/access_points.js.coffee
diff options
context:
space:
mode:
Diffstat (limited to 'app/assets/javascripts/access_points.js.coffee')
-rw-r--r--app/assets/javascripts/access_points.js.coffee16
1 files changed, 16 insertions, 0 deletions
diff --git a/app/assets/javascripts/access_points.js.coffee b/app/assets/javascripts/access_points.js.coffee
index c0f49ebd5..74c5e926f 100644
--- a/app/assets/javascripts/access_points.js.coffee
+++ b/app/assets/javascripts/access_points.js.coffee
@@ -28,3 +28,19 @@ jQuery ->
$('input#access_point_x').change(lon_lat_change)
$('input#access_point_y').change(lon_lat_change)
+
+
+ # switch visibility of access_links
+ switch_generics = (event) ->
+ event.preventDefault()
+ $('.access_points .generics.content').toggle('slow')
+ $('a.generics .switcher').toggle()
+
+ $('.access_points a.generics').click(switch_generics)
+
+ switch_details = (event) ->
+ event.preventDefault()
+ $('.access_points .details.content').toggle('slow')
+ $('a.details .switcher').toggle()
+
+ $('.access_points a.details').click(switch_details)