Fix search translation for Firefox 17 sandboxing changes

This commit is contained in:
Simon Kornblith 2012-10-29 15:51:53 -04:00
parent e0e4699c3e
commit a8efc1b874

View File

@ -2097,7 +2097,10 @@ Zotero.Translate.Search.prototype.complete = function(returnValue, error) {
/**
* Pass search item to detect* and do* functions
*/
Zotero.Translate.Search.prototype._getParameters = function() { return [this.search]; };
Zotero.Translate.Search.prototype._getParameters = function() {
if(Zotero.isFx) return [this._sandboxManager.sandbox.Zotero._transferItem(JSON.stringify(this.search))];
return [this.search];
};
/**
* Extract sandbox location from translator target