Now that we have a Dojo language picker, spread the locale-awareness
authordbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 19 Aug 2008 20:02:54 +0000 (20:02 +0000)
committerdbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 19 Aug 2008 20:02:54 +0000 (20:02 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@10374 dcc99617-32d9-48b4-a31d-7c20da2025e4

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

index 09a1422..a9ef9cc 100644 (file)
@@ -61,6 +61,7 @@ function RemoteRequest( service, method ) {
 
 
        this.service    = service;
+       this.locale             = dojo.config.locale;
        this.method             = method;
        this.xmlhttp    = false;
        this.name               = null;
@@ -84,7 +85,7 @@ function RemoteRequest( service, method ) {
        }
 
        if(!this.params) { this.params = ""; }
-       this.param_string = "service=" + service + "&method=" + method + this.params;
+       this.param_string = "service=" + service + "&locale=" + locale + "&method=" + method + this.params;
        if( this.buildXMLRequest() == null ) alert("Browser is not supported!");
 
 }