aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/vehicle_journeys/edit.js.slim
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/vehicle_journeys/edit.js.slim')
-rw-r--r--app/views/vehicle_journeys/edit.js.slim9
1 files changed, 9 insertions, 0 deletions
diff --git a/app/views/vehicle_journeys/edit.js.slim b/app/views/vehicle_journeys/edit.js.slim
new file mode 100644
index 000000000..a692bb543
--- /dev/null
+++ b/app/views/vehicle_journeys/edit.js.slim
@@ -0,0 +1,9 @@
+$(document).ready(function() {
+ $("#vehicle_journey_journey_pattern_id").change(
+ function(){
+ var url = "#{select_journey_pattern_referential_line_route_vehicle_journey_path( @referential, @line, @route, @vehicle_journey)}?journey_pattern_id="+
+ $("#vehicle_journey_journey_pattern_input select option:selected").attr("value");
+ $.get(url);
+ }
+ )
+});