From 75712ed42d535743e05f7a571557f3160a0249b8 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Thu, 13 Jun 2019 12:22:54 -0400 Subject: [PATCH] Remove "Move to Trash" button in item retraction banner There can be situations where people legitimately want to keep the item, so encouraging deletion is a bit presumptuous. --- chrome/content/zotero/bindings/itembox.xml | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/chrome/content/zotero/bindings/itembox.xml b/chrome/content/zotero/bindings/itembox.xml index f51abb9b40..05f4fd559d 100644 --- a/chrome/content/zotero/bindings/itembox.xml +++ b/chrome/content/zotero/bindings/itembox.xml @@ -2397,19 +2397,6 @@ this._id('retraction-header-text').textContent = Zotero.getString('retraction.banner'); - var deleteButton = this._id('retraction-header-delete-button'); - if (!this.item.deleted && this.item.isEditable()) { - deleteButton.hidden = false; - deleteButton.textContent = Zotero.getString('pane.items.trash.title'); - deleteButton.onclick = function () { - this.item.deleted = true; - this.item.saveTx(); - }.bind(this); - } - else { - deleteButton.hidden = true; - } - // Date if (data.date) { this._id('retraction-date').hidden = false; @@ -2628,7 +2615,6 @@ hidden="hidden">
-