Backport r12055 from trunk to make gateway requests honour OpenSRF locale vs. Dojo...
authordbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 4 Feb 2009 04:48:59 +0000 (04:48 +0000)
committerdbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 4 Feb 2009 04:48:59 +0000 (04:48 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_1_4_0@12059 dcc99617-32d9-48b4-a31d-7c20da2025e4

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

index 53d1830..aff59b4 100644 (file)
@@ -61,7 +61,8 @@ function RemoteRequest( service, method ) {
 
        /* dojo is currently only available in the OPAC */
        try {
-               this.locale     = dojo.config.locale;
+               /* We want OpenSRF.locale for xx-YY format */
+               this.locale     = OpenSRF.locale;
        }
        catch (e) {
                this.locale = null;