1
0
mirror of https://github.com/fspc/workstand.git synced 2025-02-28 03:23:24 -05:00

time is not callable.

This commit is contained in:
Drew Larson 2017-01-21 08:54:25 -06:00
parent f50f2293ca
commit 6cb5e09958

View File

@ -21,7 +21,7 @@
}); });
Object.observe(dateOfBirth, function(changes) { Object.observe(dateOfBirth, function(changes) {
var input = document.getElementById('{{ form.date_of_birth.id_for_label }}'); var input = document.getElementById('{{ form.date_of_birth.id_for_label }}');
input.value = dateOfBirth.time().format('YYYY-MM-DD'); input.value = dateOfBirth.time.format('YYYY-MM-DD');
input.parentNode.classList.add('is-dirty'); input.parentNode.classList.add('is-dirty');
var threshold = moment.duration(18, 'years'); var threshold = moment.duration(18, 'years');