added some more debugging
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Sun, 24 Sep 2006 18:39:18 +0000 (18:39 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Sun, 24 Sep 2006 18:39:18 +0000 (18:39 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@6205 dcc99617-32d9-48b4-a31d-7c20da2025e4

Evergreen/xul/staff_client/server/patron/ue_config.js

index 7df6a1e..8fa5376 100644 (file)
@@ -398,6 +398,8 @@ function uEditDefineData(patron) {
                                        exptime                 += intsecs * 1000;
                                        expdate.setTime(exptime);
 
+                                       _debug("profile change (interval= '"+interval+"', seconds="+intsecs+")\n\tgenerated a date of " + expdate);
+
                                        var year                        = expdate.getYear() + 1900;
                                        var month               = (expdate.getMonth() + 1) + '';
                                        var day                 = (expdate.getDate()) + '';
@@ -405,8 +407,11 @@ function uEditDefineData(patron) {
                                        if(!month.match(/\d{2}/)) month = '0' + month;
                                        if(!day.match(/\d{2}/)) day = '0' + day;
 
+
                                        var node = $('ue_expire');
                                        node.value = year+'-'+month+'-'+day;
+
+                                       _debug("profile change formatted date to "+ node.value);
                                }
                        }
                },