1
0
mirror of https://github.com/fspc/workstand.git synced 2025-02-23 09:13:23 -05:00
This commit is contained in:
Drew Larson 2017-01-14 13:37:27 -06:00
parent e962c4036b
commit 720beada03

View File

@ -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