[open-ils-commits] r16952 - trunk/Open-ILS/web/js/dojo/openils/widget (senator)
svn at svn.open-ils.org
svn at svn.open-ils.org
Thu Jul 15 18:01:35 EDT 2010
Author: senator
Date: 2010-07-15 18:01:29 -0400 (Thu, 15 Jul 2010)
New Revision: 16952
Modified:
trunk/Open-ILS/web/js/dojo/openils/widget/TranslatorPopup.js
Log:
This should have been part of r16946. Now the TranslatorPopup works in the
Copy Location Editor
Modified: trunk/Open-ILS/web/js/dojo/openils/widget/TranslatorPopup.js
===================================================================
--- trunk/Open-ILS/web/js/dojo/openils/widget/TranslatorPopup.js 2010-07-15 21:34:21 UTC (rev 16951)
+++ trunk/Open-ILS/web/js/dojo/openils/widget/TranslatorPopup.js 2010-07-15 22:01:29 UTC (rev 16952)
@@ -20,7 +20,6 @@
dojo._hasResource["openils.widget.TranslatorPopup"] = true;
dojo.provide("openils.widget.TranslatorPopup");
dojo.require("openils.I18N");
- dojo.require("openils.User");
dojo.require("fieldmapper.dojoData");
dojo.require("DojoSRF");
dojo.require("dojo.data.ItemFileWriteStore");
@@ -212,10 +211,13 @@
var _trans_dijit = this;
+ if (typeof(ses) == "undefined")
+ var ses = cgi.param("ses") || dojo.cookie("ses");
+
OpenSRF.CachedClientSession('open-ils.permacrud').request({
method : 'open-ils.permacrud.' + method + '.i18n',
timeout: 10,
- params : [ openils.User.authtoken, trans_obj ],
+ params : [ ses, trans_obj ],
onerror: function (r) {
//highlighter.editor_pane.red.play();
if ((typeof status_update != "undefined") && status_update) status_update( 'Problem saving translation for ' + _trans_dijit._targetObject[_trans_dijit.field]() );
More information about the open-ils-commits
mailing list