From 72bad4309b77a02ac642c4643f0981565a5b9aa6 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Thu, 7 Jul 2016 04:08:11 -0400 Subject: [PATCH] Show "Choose Parent" button for deleted items in CR window --- chrome/content/zotero/bindings/merge.xml | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/chrome/content/zotero/bindings/merge.xml b/chrome/content/zotero/bindings/merge.xml index 3cf96f7227..33bbaf007c 100644 --- a/chrome/content/zotero/bindings/merge.xml +++ b/chrome/content/zotero/bindings/merge.xml @@ -299,6 +299,16 @@ this.parent.choosePane(this); + button.hidden = false; + } + else { + button.hidden = true; + } + if (val.deleted) { this.deleted = true; return; @@ -341,18 +351,6 @@ objbox.setAttribute("flex", "1"); objbox.mode = this.type == 'file' ? 'filemerge' : 'merge'; - var button = this._id('choose-button'); - if (this.showButton) { - button.label = Zotero.getString('sync.conflict.chooseThisVersion'); - button.onclick = function () { - this.parent.choosePane(this); - }.bind(this); - button.hidden = false; - } - else { - button.hidden = true; - } - // Store JSON this._data = val;