From: phasefx Date: Fri, 11 Dec 2009 20:35:30 +0000 (+0000) Subject: copy/paste-o. wrong variables. X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=624109d28c2d0cc096351231d5b14f511bfc0e5d;p=evergreen%2Fjoelewis.git copy/paste-o. wrong variables. git-svn-id: svn://svn.open-ils.org/ILS/trunk@15147 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/xul/staff_client/chrome/content/util/timestamp.js b/Open-ILS/xul/staff_client/chrome/content/util/timestamp.js index d9f6033b6c..825dc94711 100644 --- a/Open-ILS/xul/staff_client/chrome/content/util/timestamp.js +++ b/Open-ILS/xul/staff_client/chrome/content/util/timestamp.js @@ -82,10 +82,10 @@ function timestamp_init() { function check_date(value) { if (xul_param('disallow_future_dates',{'modal_xulG':true})) { - if ( ev.target.dateValue > new Date() ) { return { 'allowed' : false, 'reason' : $('commonStrings').getString('staff.util.timestamp_dialog.future_date_disallowed') }; } + if ( value > new Date() ) { return { 'allowed' : false, 'reason' : $('commonStrings').getString('staff.util.timestamp_dialog.future_date_disallowed') }; } } if (xul_param('disallow_past_dates',{'modal_xulG':true})) { - if ( util.date.check_past('YYYY-MM-DD', ev.target.value) ) { return { 'allowed' : false, 'reason' : $('commonStrings').getString('staff.util.timestamp_dialog.past_date_disallowed') }; } + if ( util.date.check_past('YYYY-MM-DD', value) ) { return { 'allowed' : false, 'reason' : $('commonStrings').getString('staff.util.timestamp_dialog.past_date_disallowed') }; } } if (xul_param('disallow_today',{'modal_xulG':true})) { if ( util.date.formatted_date(new Date(),'%F') == value) { return { 'allowed' : false, 'reason' : $('commonStrings').getString('staff.util.timestamp_dialog.today_disallowed') }; }