diff --git a/chrome/content/zotero/zoteroPane.js b/chrome/content/zotero/zoteroPane.js
index dea87d7f7..2c166012f 100644
--- a/chrome/content/zotero/zoteroPane.js
+++ b/chrome/content/zotero/zoteroPane.js
@@ -2853,6 +2853,27 @@ var ZoteroPane = new function()
}
+ this.addAttachmentFromURI = function (link, itemID) {
+ if (!this.canEdit()) {
+ this.displayCannotEditLibraryMessage();
+ return;
+ }
+ var ps = Components.classes["@mozilla.org/embedcomp/prompt-service;1"]
+ .getService(Components.interfaces.nsIPromptService);
+
+ var input = {};
+ var check = {value : false};
+
+ // TODO: Localize
+ // TODO: Allow title to be specified?
+ var result = ps.prompt(null, "Attach Link to URI", "Enter a URI:", input, "", {});
+ if (!result || !input.value) return false;
+
+ // Create a new attachment
+ Zotero.Attachments.linkFromURL(input.value, itemID);
+ }
+
+
function addAttachmentFromDialog(link, id)
{
if (!this.canEdit()) {
@@ -3689,4 +3710,4 @@ var ZoteroPane = new function()
* Keep track of which ZoteroPane was local (since ZoteroPane object might get swapped out for a
* tab's ZoteroPane)
*/
-var ZoteroPane_Local = ZoteroPane;
\ No newline at end of file
+var ZoteroPane_Local = ZoteroPane;
diff --git a/chrome/content/zotero/zoteroPane.xul b/chrome/content/zotero/zoteroPane.xul
index 9b1524a94..82f2170e2 100644
--- a/chrome/content/zotero/zoteroPane.xul
+++ b/chrome/content/zotero/zoteroPane.xul
@@ -141,6 +141,7 @@
+
@@ -240,6 +241,7 @@
diff --git a/chrome/locale/en-US/zotero/zotero.dtd b/chrome/locale/en-US/zotero/zotero.dtd
index d6fdbfd25..69fdfd5d9 100644
--- a/chrome/locale/en-US/zotero/zotero.dtd
+++ b/chrome/locale/en-US/zotero/zotero.dtd
@@ -62,6 +62,7 @@
+
@@ -228,4 +229,4 @@
-
\ No newline at end of file
+