From 720beada0393b449d6528c6588553aacd2f81785 Mon Sep 17 00:00:00 2001 From: Drew Larson Date: Sat, 14 Jan 2017 13:37:27 -0600 Subject: [PATCH] Fixes #6. --- bikeshop_project/core/templates/membership_form.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bikeshop_project/core/templates/membership_form.html b/bikeshop_project/core/templates/membership_form.html index 1883342..7998cf7 100644 --- a/bikeshop_project/core/templates/membership_form.html +++ b/bikeshop_project/core/templates/membership_form.html @@ -157,7 +157,7 @@ var renewedAt = new mdDateTimePicker.default({ type: 'date', past: moment().subtract(100, 'years'), - trigger: document.getElementById('{{ form.renewed_at.id_for_label }}') + trigger: document.getElementById('{{ membership_form.renewed_at.id_for_label }}') }); document.getElementById('{{ membership_form.renewed_at.id_for_label }}').addEventListener('focus', function() { console.log('Toggle!'); @@ -175,6 +175,7 @@ document.getElementById('{{ membership_form.give_back.id_for_label }}'), document.getElementById('{{ membership_form.respect_shop.id_for_label }}') ]; + var checkResponsiblities = function () { allAgreed = responsibilities.every(function (checkbox) { return checkbox.checked