From 0531960e61d9d528ab626dc80dcfb829ef321cca Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Sun, 17 Jan 2010 11:15:29 +0000 Subject: [PATCH] Fix for spacebar not working on attachment view/show buttons --- .../content/zotero/bindings/attachmentbox.xml | 33 ++++++++++++------- 1 file changed, 22 insertions(+), 11 deletions(-) diff --git a/chrome/content/zotero/bindings/attachmentbox.xml b/chrome/content/zotero/bindings/attachmentbox.xml index c4fb0df0e9..4c9f1036d6 100644 --- a/chrome/content/zotero/bindings/attachmentbox.xml +++ b/chrome/content/zotero/bindings/attachmentbox.xml @@ -191,15 +191,6 @@ // View and Show buttons if (this.displayGoButtons) { goButtons.hidden = false; - - var itemID = this.item.id; - var noLocateOnMissing = !this.editable; - viewButton.onclick = function (event) { - ZoteroPane.viewAttachment(itemID, event, noLocateOnMissing) - } - showButton.onclick = function (event) { - ZoteroPane.showAttachmentInFilesystem(itemID, noLocateOnMissing) - } } else { goButtons.hidden = true; @@ -454,6 +445,26 @@ + + + + + + + + + + + + + + + + @@ -514,8 +525,8 @@ xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">