aboutsummaryrefslogtreecommitdiffstats
path: root/app/assets/javascripts
diff options
context:
space:
mode:
authorVlatka Pavisic2017-04-13 09:34:05 +0200
committerVlatka Pavisic2017-04-13 09:36:28 +0200
commit8635de27b6d49331b6acc59b258e1b6cf1d84d06 (patch)
treed08936e18efb32a4c7317794b791d880bf15a4ef /app/assets/javascripts
parent3f7aca89384a1e682fdf93c3449ade6348260ad3 (diff)
downloadchouette-core-8635de27b6d49331b6acc59b258e1b6cf1d84d06.tar.bz2
Refs #3047: Turbolinks load
Diffstat (limited to 'app/assets/javascripts')
-rw-r--r--app/assets/javascripts/routing_constraint_zones.coffee9
1 files changed, 5 insertions, 4 deletions
diff --git a/app/assets/javascripts/routing_constraint_zones.coffee b/app/assets/javascripts/routing_constraint_zones.coffee
index 707b6a856..7460a64a7 100644
--- a/app/assets/javascripts/routing_constraint_zones.coffee
+++ b/app/assets/javascripts/routing_constraint_zones.coffee
@@ -14,7 +14,8 @@ fill_stop_points_options = ->
console.log textStatus
console.log errorThrown
-# $ ->
-# if document.location.pathname.endsWith('new')
-# fill_stop_points_options()
-# $('#routing_constraint_zone_route_id').change(fill_stop_points_options)
+$(document).on 'turbolinks:load', ->
+ if document.location.pathname.endsWith('new')
+ fill_stop_points_options()
+ $('#routing_constraint_zone_route_id').change(fill_stop_points_options)
+