- show appropriate error message when attempting to use quick copy on a non-reference
- eliminate use of window.loadURI
This commit is contained in:
parent
55d3f8c47c
commit
46c5014c28
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue