commit c942afb2b0ca30bea39eec1e04a366ea142b255c parent 7c081170d51d4c88de2324b959cb5d51b6f7f936 Author: Dan Stillman <dstillman@zotero.org> Date: Tue, 18 Nov 2008 00:06:36 +0000 Until it's fixed, add a proper error message when trying to duplicate an item Diffstat:
| M | chrome/content/zotero/overlay.js | | | 5 | +++++ |
1 file changed, 5 insertions(+), 0 deletions(-)
diff --git a/chrome/content/zotero/overlay.js b/chrome/content/zotero/overlay.js @@ -1075,6 +1075,11 @@ var ZoteroPane = new function() function duplicateSelectedItem() { + var ps = Components.classes["@mozilla.org/embedcomp/prompt-service;1"] + .getService(Components.interfaces.nsIPromptService); + ps.alert(null, "Error", "Item duplication is not available in this Zotero release."); + return; + var newItem = this.getSelectedItems()[0].clone(); var newItemID = newItem.save() var newItem = Zotero.Items.get(newItemID);