www

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

commit 82106afc955bf92ce87813669ac721ee8f22edb7
parent 1ff56d865038372ab80ddeb3b0d6aad131f63d5a
Author: Dan Stillman <dstillman@zotero.org>
Date:   Fri, 28 Jul 2006 16:20:48 +0000

JavaScript, how I love thee.

Fixes URL not being stored with saved web pages.


Diffstat:
Mchrome/chromeFiles/content/scholar/xpcom/data_access.js | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/chrome/chromeFiles/content/scholar/xpcom/data_access.js b/chrome/chromeFiles/content/scholar/xpcom/data_access.js @@ -1842,6 +1842,7 @@ Scholar.Files = new function(){ this.linkFromDocument = linkFromDocument; this.importFromDocument = importFromDocument; + var self = this; function importFromFile(file, sourceItemID){ var title = file.leafName; @@ -1991,9 +1992,8 @@ Scholar.Files = new function(){ if (url){ var path = url; } - if (file){ - if (linkMode==this.LINK_MODE_IMPORTED_URL){ + if (linkMode==self.LINK_MODE_IMPORTED_URL){ var originalPath = path; }