Browse Source

Fixes #6.

feature/python-error-tracking
Drew Larson 8 years ago
parent
commit
720beada03
  1. 3
      bikeshop_project/core/templates/membership_form.html

3
bikeshop_project/core/templates/membership_form.html

@ -157,7 +157,7 @@
var renewedAt = new mdDateTimePicker.default({ var renewedAt = new mdDateTimePicker.default({
type: 'date', type: 'date',
past: moment().subtract(100, 'years'), 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() { document.getElementById('{{ membership_form.renewed_at.id_for_label }}').addEventListener('focus', function() {
console.log('Toggle!'); console.log('Toggle!');
@ -175,6 +175,7 @@
document.getElementById('{{ membership_form.give_back.id_for_label }}'), document.getElementById('{{ membership_form.give_back.id_for_label }}'),
document.getElementById('{{ membership_form.respect_shop.id_for_label }}') document.getElementById('{{ membership_form.respect_shop.id_for_label }}')
]; ];
var checkResponsiblities = function () { var checkResponsiblities = function () {
allAgreed = responsibilities.every(function (checkbox) { allAgreed = responsibilities.every(function (checkbox) {
return checkbox.checked return checkbox.checked

Loading…
Cancel
Save