commit af775e60825c70803f3c4fe098577c4386524c66 parent 6de3fa4d47749d3a46eb46d1541a725f7ae15ae8 Author: Dan Stillman <dstillman@zotero.org> Date: Tue, 20 Jan 2015 13:03:01 -0500 Merge pull request #610 from aurimasv/attach-link Attach link from URI fix Diffstat:
| M | chrome/content/zotero/attachLink.xul | | | 2 | +- |
| M | chrome/content/zotero/xpcom/attachments.js | | | 3 | ++- |
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/chrome/content/zotero/attachLink.xul b/chrome/content/zotero/attachLink.xul @@ -14,7 +14,7 @@ > <script src="include.js"/> - <script src="AttachLink.js"/> + <script src="attachLink.js"/> <vbox id="zotero-attach-uri-container"> <hbox> diff --git a/chrome/content/zotero/xpcom/attachments.js b/chrome/content/zotero/xpcom/attachments.js @@ -457,7 +457,8 @@ Zotero.Attachments = new function(){ title = dir[dir.length - 2]; } } - else { + + if (!title) { title = url; } }