logging status
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 6 Jul 2006 20:22:58 +0000 (20:22 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 6 Jul 2006 20:22:58 +0000 (20:22 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@4919 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/web/opac/common/js/RemoteRequest.js

index d3c7033..3561f1b 100644 (file)
@@ -149,11 +149,13 @@ function _remoteRequestCallback(id) {
        var object = _allrequests[id];
        if(object.cancelled) return;
 
+       /*
        if( isXUL() ) {
                try {
                        dump('xmlhttprequest status = ' + object.xmlhttp.status + '\n');
                } catch(e) {}
        }
+       */
 
        if( object.xmlhttp.readyState == 4 ) {
                try {
@@ -260,6 +262,12 @@ RemoteRequest.prototype.getResultObject = function() {
        if(this.cancelled) return null;
        if(!this.xmlhttp) return null;
 
+       if( isXUL() ) {
+               try {
+                       dump('xmlhttprequest status = ' + this.xmlhttp.status + '\n');
+               } catch(e) {}
+       }
+
        this.event(null);
 
        var text = this.xmlhttp.responseText;