www

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

commit 46c5014c286aa238a14b3c4a1794edd5784dc194
parent 55d3f8c47c44459244a8883856b1bb12fae64d35
Author: Simon Kornblith <simon@simonster.com>
Date:   Tue, 31 May 2011 04:13:46 +0000

- show appropriate error message when attempting to use quick copy on a non-reference
- eliminate use of window.loadURI


Diffstat:
Mchrome/content/zotero/zoteroPane.js | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/chrome/content/zotero/zoteroPane.js b/chrome/content/zotero/zoteroPane.js @@ -1663,7 +1663,7 @@ var ZoteroPane = new function() } } if (!canCopy) { - var promptService = Components.classes["@mozilla.org/embedcomp/prompt-service;1"] + var ps = Components.classes["@mozilla.org/embedcomp/prompt-service;1"] .getService(Components.interfaces.nsIPromptService); ps.alert(null, "", Zotero.getString("fileInterface.noReferencesError")); return; @@ -3204,7 +3204,7 @@ var ZoteroPane = new function() catch (e) { Zotero.debug("launch() not supported -- passing file to loadURI()"); var fileURL = attachment.getLocalFileURL(); - window.loadURI(fileURL); + this.loadURI(fileURL); } } }