Use a slightly more robust scheme for setting OpenSRF locale in DojoSRF.
authordbs <dbs@9efc2488-bf62-4759-914b-345cdb29e865>
Wed, 6 Aug 2008 03:37:07 +0000 (03:37 +0000)
committerdbs <dbs@9efc2488-bf62-4759-914b-345cdb29e865>
Wed, 6 Aug 2008 03:37:07 +0000 (03:37 +0000)
git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@1386 9efc2488-bf62-4759-914b-345cdb29e865

src/javascript/DojoSRF.js

index f00ddac..6b52594 100644 (file)
@@ -17,5 +17,8 @@ if(!dojo._hasResource['DojoSRF']){
                return this.session_cache[app];
        }
 
-       OpenSRF.locale = dojo.config.locale || dojo.isIE ? navigator.userLanguage : navigator.language;
+       OpenSRF.locale = dojo.config.locale;
+       if (!OpenSRF.locale) {
+               OpenSRF.locale = dojo.isIE ? navigator.userLanguage : navigator.language;
+       }
 }