added some logging to test
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 17 Jan 2007 20:27:52 +0000 (20:27 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 17 Jan 2007 20:27:52 +0000 (20:27 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@6782 dcc99617-32d9-48b4-a31d-7c20da2025e4

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

index fd8c9a3..c51b919 100644 (file)
@@ -27,18 +27,10 @@ function uEditInit() {
 
        setTimeout( function() { 
                uEditBuild(); uEditShowPage('uedit_userid'); }, 20 );
-
-   /*
-   window.onunload = function() { 
-      if( ! confirm($('ue_unsaved_changes').innerHTML) ) 
-         location.href = location.href;
-   }
-   */
-
-
 }
 
 function uEditSetUnload() {
+   _debug('setting window unload event');
    window.onbeforeunload = function(evt) { 
       //evt.returnValue = ('ue_unsaved_changes').innerHTML; 
       return $('ue_unsaved_changes').innerHTML; 
@@ -46,6 +38,7 @@ function uEditSetUnload() {
 }
 
 function uEditClearUnload() {
+   _debug('clearing window unload event');
    window.onbeforeunload = null;
 }