From: Lebbeous Fogle-Weekley Date: Fri, 3 Jun 2011 19:17:48 +0000 (-0400) Subject: no future dates of birth allowed X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=5e2148d91048674f1def83535798d6cd5590eed8;p=working%2FEvergreen.git no future dates of birth allowed Signed-off-by: Lebbeous Fogle-Weekley --- 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;