copy/paste-o. wrong variables.
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 11 Dec 2009 20:35:30 +0000 (20:35 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 11 Dec 2009 20:35:30 +0000 (20:35 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@15147 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/chrome/content/util/timestamp.js

index d9f6033..825dc94 100644 (file)
@@ -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') }; }