[Opensrf-commits] r1386 - trunk/src/javascript

svn at svn.open-ils.org svn at svn.open-ils.org
Tue Aug 5 23:37:14 EDT 2008


Author: dbs
Date: 2008-08-05 23:37:07 -0400 (Tue, 05 Aug 2008)
New Revision: 1386

Modified:
   trunk/src/javascript/DojoSRF.js
Log:
Use a slightly more robust scheme for setting OpenSRF locale in DojoSRF.


Modified: trunk/src/javascript/DojoSRF.js
===================================================================
--- trunk/src/javascript/DojoSRF.js	2008-08-04 01:43:34 UTC (rev 1385)
+++ trunk/src/javascript/DojoSRF.js	2008-08-06 03:37:07 UTC (rev 1386)
@@ -17,5 +17,8 @@
 		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;
+	}
 }



More information about the opensrf-commits mailing list