diff --git a/chrome/content/scripts/delitem.js b/chrome/content/scripts/delitem.js index a19ccc5..fbddb40 100644 --- a/chrome/content/scripts/delitem.js +++ b/chrome/content/scripts/delitem.js @@ -19,8 +19,9 @@ Zotero.DelItem = { var truthBeTold = window.confirm(Zotero.DelItem.diwaGetString("delete.collection.and.attachment")) if (truthBeTold) { Zotero.DelItem.DelItems(items); - collection.deleted = true; //删除条目 - await collection.saveTx(); + // collection.deleted = true; //删除条目 + // await collection.saveTx(); + await collection.eraseTx() } }, diff --git a/install.rdf b/install.rdf index 355add1..b86c366 100644 --- a/install.rdf +++ b/install.rdf @@ -7,7 +7,7 @@ RDF:about="urn:mozilla:install-manifest" em:id="delitemwithatt@redleaf.me" em:name="Del Item With Att" - em:version="0.0.19" + em:version="0.0.20" em:type="2" em:creator="Minyi Han" em:description="Delete Item(s) With Attachment(s)" diff --git a/update.rdf b/update.rdf index 78e5ed5..096d5dc 100644 --- a/update.rdf +++ b/update.rdf @@ -6,13 +6,13 @@ - 0.0.19 + 0.0.20 zotero@chnm.gmu.edu 5.0.0 6.* - https://github.com/redleafnew/delitemwithatt/releases/download/0.0.19/delitemwithatt.xpi + https://github.com/redleafnew/delitemwithatt/releases/download/0.0.20/delitemwithatt.xpi @@ -21,7 +21,7 @@ juris-m@juris-m.github.io 4.999 6.* - https://github.com/redleafnew/delitemwithatt/releases/download/0.0.19/delitemwithatt.xpi + https://github.com/redleafnew/delitemwithatt/releases/download/0.0.20/delitemwithatt.xpi