possible fix to local chrome server error created by secure mangling
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 11 Aug 2006 15:19:40 +0000 (15:19 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 11 Aug 2006 15:19:40 +0000 (15:19 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@5460 dcc99617-32d9-48b4-a31d-7c20da2025e4

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

index e289081..df9f553 100644 (file)
@@ -223,6 +223,8 @@ RemoteRequest.prototype.send = function(blocking) {
 
        if(isXUL()) {
                netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserRead");
+               if( XML_HTTP_SERVER ) 
+                       url = 'http://'+XML_HTTP_SERVER+'/'+XML_HTTP_GATEWAY;
                if( this.secure ) url = url.replace(/http/, 'https');
                else url = url.replace(/https/, 'http');
        }