From 3bbc357d1be1bb4298e5d7d91c1df834f656cf8f Mon Sep 17 00:00:00 2001 From: senator Date: Thu, 15 Jul 2010 22:01:29 +0000 Subject: [PATCH] This should have been part of r16946. Now the TranslatorPopup works in the Copy Location Editor git-svn-id: svn://svn.open-ils.org/ILS/trunk@16952 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/web/js/dojo/openils/widget/TranslatorPopup.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Open-ILS/web/js/dojo/openils/widget/TranslatorPopup.js b/Open-ILS/web/js/dojo/openils/widget/TranslatorPopup.js index 1ff0bf5e9..96f14a6ce 100644 --- a/Open-ILS/web/js/dojo/openils/widget/TranslatorPopup.js +++ b/Open-ILS/web/js/dojo/openils/widget/TranslatorPopup.js @@ -20,7 +20,6 @@ if(!dojo._hasResource["openils.widget.TranslatorPopup"]) { 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 @@ if(!dojo._hasResource["openils.widget.TranslatorPopup"]) { 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]() ); -- 2.11.0