From 46c5014c286aa238a14b3c4a1794edd5784dc194 Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Tue, 31 May 2011 04:13:46 +0000 Subject: [PATCH] - show appropriate error message when attempting to use quick copy on a non-reference - eliminate use of window.loadURI --- chrome/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 index a401b5a63a..38b38c927b 100644 --- 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); } } }