default to location.host for server
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 15 Mar 2006 22:57:59 +0000 (22:57 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 15 Mar 2006 22:57:59 +0000 (22:57 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@3364 dcc99617-32d9-48b4-a31d-7c20da2025e4

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

index cca00ee..0674f37 100644 (file)
@@ -1,5 +1,5 @@
 var XML_HTTP_GATEWAY = "gateway";
 var XML_HTTP_GATEWAY = "gateway";
-var XML_HTTP_SERVER = "dev.gapines.org";
+var XML_HTTP_SERVER = "";
 var XML_HTTP_MAX_TRIES = 3;
 
 //var IAMXUL = false;
 var XML_HTTP_MAX_TRIES = 3;
 
 //var IAMXUL = false;
@@ -166,7 +166,7 @@ RemoteRequest.prototype.send = function(blocking) {
        /* determine the xmlhttp server dynamically */
        var url = location.protocol + "//" + location.host + "/" + XML_HTTP_GATEWAY;
 
        /* determine the xmlhttp server dynamically */
        var url = location.protocol + "//" + location.host + "/" + XML_HTTP_GATEWAY;
 
-       if(isXUL()) {
+       if(isXUL() && XML_HTTP_SERVER) {
                if(this.secure || url.match(/^https:/) )
                        url =   "https://" + XML_HTTP_SERVER + "/" + XML_HTTP_GATEWAY;
                else
                if(this.secure || url.match(/^https:/) )
                        url =   "https://" + XML_HTTP_SERVER + "/" + XML_HTTP_GATEWAY;
                else