www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit 5a4b280dad05e105f6616ee76ed970b0225edbcf
parent 2e4a21857579922715e7227b76312157733c1006
Author: aurimasv <aurimas.dev@gmail.com>
Date:   Tue, 27 Nov 2012 16:33:49 -0600

Use the last version of the page for translation.

Diffstat:
Mchrome/content/zotero/browser.js | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/chrome/content/zotero/browser.js b/chrome/content/zotero/browser.js @@ -794,7 +794,8 @@ Zotero_Browser.Tab.prototype._translatorsAvailable = function(translate, transla // if there's already a scrapable page in the browser window, and it's // still there, ensure it is actually part of the page, then return if(this.page.translators && this.page.translators.length && this.page.document.location) { - if(this.page.document.defaultView && !this.page.document.defaultView.closed) { + if(this.page.document.defaultView && !this.page.document.defaultView.closed + && this.page.document.location.href != translate.document.location.href) { // if it is still there, switch translation to take place on if(!translators.length || this.page.translators[0].priority <= translators[0].priority) return; } else {