From 5e2148d91048674f1def83535798d6cd5590eed8 Mon Sep 17 00:00:00 2001 From: Lebbeous Fogle-Weekley Date: Fri, 3 Jun 2011 15:17:48 -0400 Subject: [PATCH] no future dates of birth allowed Signed-off-by: Lebbeous Fogle-Weekley --- Open-ILS/web/js/ui/default/actor/user/register.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Open-ILS/web/js/ui/default/actor/user/register.js b/Open-ILS/web/js/ui/default/actor/user/register.js index 9369e7e84f..1698cb1ec8 100644 --- a/Open-ILS/web/js/ui/default/actor/user/register.js +++ b/Open-ILS/web/js/ui/default/actor/user/register.js @@ -1005,6 +1005,9 @@ function attachWidgetEvents(fmcls, fmfield, widget) { return; case 'dob': + widget.widget.isValid = function() { + return this.attr("value") < new Date(); + }; dojo.connect(widget.widget, 'onChange', function(newDob) { if(!newDob) return; -- 2.11.0