Skip to content
Snippets Groups Projects
Commit 2c22b37f authored by Piotr Gawron's avatar Piotr Gawron
Browse files

common variable extracted

parent d6bfb811
No related branches found
No related tags found
1 merge request!99separate patient data from study data
...@@ -133,14 +133,15 @@ ...@@ -133,14 +133,15 @@
document.getElementById("id_datetime_when").value = dateString; document.getElementById("id_datetime_when").value = dateString;
}, },
events: get_calendar_events_function("{% url 'web.api.appointments' full_list %}", false), events: get_calendar_events_function("{% url 'web.api.appointments' full_list %}", false)
}); });
}); });
appointment_type_behaviour($("input[name='appointment_types']"), $("input[name='length']"), "{% url 'web.api.appointment_types' %}"); var lengthInput = $("input[name='length']");
appointment_type_behaviour($("input[name='appointment_types']"), lengthInput, "{% url 'web.api.appointment_types' %}");
appointment_flying_team_place_behaviour($("select[name='flying_team']"), $("select[name='location']")); appointment_flying_team_place_behaviour($("select[name='flying_team']"), $("select[name='location']"));
appointment_date_change_behaviour($("input[name='datetime_when']"), $("select[name='worker_assigned']"), $("input[name='length']")); appointment_date_change_behaviour($("input[name='datetime_when']"), $("select[name='worker_assigned']"), lengthInput);
</script> </script>
{% include "includes/datetimepicker.js.html" %} {% include "includes/datetimepicker.js.html" %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment