www

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

commit 6059bf0e1b6af3e2899fd191f8b20b2aa0032cb2
parent 2a3b5593b746c184516ed44e010df889adf21d3e
Author: Dan Stillman <dstillman@zotero.org>
Date:   Mon, 23 Nov 2009 06:58:52 +0000

Always rename attachment title when using Rename File from Parent Metadata


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

diff --git a/chrome/content/zotero/overlay.js b/chrome/content/zotero/overlay.js @@ -3046,9 +3046,6 @@ var ZoteroPane = new function() continue; } - // If the attachment title was the same as the filename, change it too - var renameTitle = item.getField('title') == file.leafName; - var parentItemID = item.getSource(); var newName = Zotero.Attachments.getFileBaseNameFromItem(parentItemID); @@ -3063,10 +3060,8 @@ var ZoteroPane = new function() continue; } - if (renameTitle) { - item.setField('title', newName); - item.save(); - } + item.setField('title', newName); + item.save(); } return true;