Serialize translatorID
This commit is contained in:
parent
f68eb7c6f5
commit
32ad75c680
1 changed files with 2 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue