From 2f92cf3cd079463e57efb10a0dd035bd084af3a5 Mon Sep 17 00:00:00 2001 From: erickson Date: Thu, 25 Oct 2007 15:16:15 +0000 Subject: [PATCH] updating the path of the gateway to match the configured name in the example apache configs for the new-json gateway git-svn-id: svn://svn.open-ils.org/ILS/trunk@7927 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/web/opac/common/js/RemoteRequest.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Open-ILS/web/opac/common/js/RemoteRequest.js b/Open-ILS/web/opac/common/js/RemoteRequest.js index 21eba4dca2..09a14227c9 100644 --- a/Open-ILS/web/opac/common/js/RemoteRequest.js +++ b/Open-ILS/web/opac/common/js/RemoteRequest.js @@ -1,4 +1,4 @@ -var XML_HTTP_GATEWAY = "gateway"; +var XML_HTTP_GATEWAY = "osrf-gateway-v1"; var XML_HTTP_SERVER = ""; @@ -19,6 +19,13 @@ NetworkFailure.prototype.toString = function() { function isXUL() { try { if(IAMXUL) return true;}catch(e){return false;}; } var _allrequests = {}; +// If the legacy JSON gateway is needed by the staff client, uncomment this +/* +if(isXUL()) { + XML_HTTP_GATEWAY = 'gateway'; +} +*/ + function cleanRemoteRequests() { for( var i in _allrequests ) destroyRequest(_allrequests[i]); -- 2.11.0