postCreate : function () {
- dojo.connect(this.tooltipDialog, 'onFocus', this, 'renderTranslatorPopup');
+ dojo.connect(this.tooltipDialog, 'onOpen', this, 'renderTranslatorPopup');
this.nls = dojo.i18n.getLocalization("openils.widget", "TranslatorPopup");
isdeleted : method == 'delete' ? 1 : 0,
id : trans_id,
fq_field : this._targetObject.classname + '.' + this.field,
- identity_value : this._targetObject.id(),
+ identity_value : this._targetObject[fieldmapper[this._targetObject.classname].Identifier](),
translation : dijit.byId('locale_' + trans_id).getValue(),
string : dijit.byId('translation_' + trans_id).getValue()
});
var trans_obj = new i18n().fromHash({
isnew : 1,
fq_field : this._targetObject.classname + '.' + this.field,
- identity_value : this._targetObject.id(),
+ identity_value : this._targetObject[fieldmapper[this._targetObject.classname].Identifier](),
translation : dijit.byId('i18n_new_locale_' + this._targetObject.classname + '.' + this.field + this.unique).getValue(),
string : dijit.byId('i18n_new_translation_' + this._targetObject.classname + '.' + this.field + this.unique).getValue()
});