showing last year closed dates in addition to this year and beyond
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 3 Jan 2008 20:49:54 +0000 (20:49 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 3 Jan 2008 20:49:54 +0000 (20:49 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_1_2@8310 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/server/admin/closed_dates.js

index 73de8c7..d87bcb3 100644 (file)
@@ -128,7 +128,7 @@ function cdInitCals() {
 }
 
 function cdDrawRange( start, end, alertSuccess ) {
-       start = (start) ? start : new Date().getYear() + 1900 + '-01-01';
+       start = (start) ? start : new Date().getYear() + 1899 + '-01-01'; /* include last year's closed info for comparison */
        end = (end) ? end : '3001-01-01';
 
     if(alertSuccess) alertId('cd_update_success');