www

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

commit 9b231169b2efedba12ab5214ea5bb05251912cf7
parent 4566ff30f53e2a847fba0767783aef2ea8e65b21
Author: Dan Stillman <dstillman@zotero.org>
Date:   Fri,  1 Apr 2016 02:00:12 -0400

Return the new item from ZoteroPane.duplicateSelectedItem()

Diffstat:
Mchrome/content/zotero/zoteroPane.js | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/chrome/content/zotero/zoteroPane.js b/chrome/content/zotero/zoteroPane.js @@ -1614,7 +1614,7 @@ var ZoteroPane = new function() /** - * @return {Promise} + * @return {Promise<Zotero.Item>} - The new Zotero.Item */ this.duplicateSelectedItem = Zotero.Promise.coroutine(function* () { var self = this; @@ -1636,6 +1636,8 @@ var ZoteroPane = new function() }); yield self.selectItem(newItem.id); + + return newItem; });