[Opensrf-commits] r1544 - branches/rel_1_0/src/javascript
svn at svn.open-ils.org
svn at svn.open-ils.org
Fri Dec 19 12:03:26 EST 2008
Author: miker
Date: 2008-12-19 12:03:23 -0500 (Fri, 19 Dec 2008)
New Revision: 1544
Modified:
branches/rel_1_0/src/javascript/opensrf.js
Log:
backporting type fix and forcing of locale on all messages
Modified: branches/rel_1_0/src/javascript/opensrf.js
===================================================================
--- branches/rel_1_0/src/javascript/opensrf.js 2008-12-18 21:22:57 UTC (rev 1543)
+++ branches/rel_1_0/src/javascript/opensrf.js 2008-12-19 17:03:23 UTC (rev 1544)
@@ -233,7 +233,7 @@
OpenSRF.Stack.push = function(net_msg, callbacks) {
var ses = OpenSRF.Session.find_session(net_msg.thread);
if(!ses) return;
- ses.remote_id = net_msg.sender;
+ ses.remote_id = net_msg.from;
osrf_msgs = JSON2js(net_msg.body);
for(var i = 0; i < osrf_msgs.length; i++)
OpenSRF.Stack.handle_message(ses, osrf_msgs[i], callbacks);
@@ -291,6 +291,8 @@
function osrfMessage(hash) {
this.hash = hash;
+ if(!this.hash.locale)
+ this.hash.locale = OpenSRF.locale || 'en-US';
this._encodehash = true;
}
osrfMessage.prototype.threadTrace = function(d) {
More information about the opensrf-commits
mailing list