Until it's fixed, add a proper error message when trying to duplicate an item
This commit is contained in:
parent
7c081170d5
commit
c942afb2b0
1 changed files with 5 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue