From 32ad75c680785dff4370ab960089c920480b0dcc Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Tue, 21 Feb 2012 12:42:11 -0500 Subject: [PATCH] Serialize translatorID --- chrome/content/zotero/tools/testTranslators/testTranslators.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/chrome/content/zotero/tools/testTranslators/testTranslators.js b/chrome/content/zotero/tools/testTranslators/testTranslators.js index 55a85f65de..54d333a810 100644 --- a/chrome/content/zotero/tools/testTranslators/testTranslators.js +++ b/chrome/content/zotero/tools/testTranslators/testTranslators.js @@ -129,6 +129,7 @@ var TranslatorTestView = function(translator, type) { * Initializes TranslatorTestView given a translator and its type */ TranslatorTestView.prototype.initWithTranslatorAndType = function(translator, type) { + this._translatorID = translator.translatorID; this._label.appendChild(document.createTextNode(translator.label)); this.isSupported = translator.runMode === Zotero.Translator.RUN_MODE_IN_BROWSER; @@ -166,6 +167,7 @@ TranslatorTestView.prototype.unserialize = function(serializedData) { */ TranslatorTestView.prototype.serialize = function(serializedData) { return { + "translatorID":this._translatorID, "type":this._type, "output":this._outputView.getOutput(), "label":this._label.textContent,