From f1f6e351da643577b2c555e1f61908bca33e93a6 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Wed, 28 Mar 2007 15:19:52 +0000 Subject: [PATCH] Fixes #595, Clicking URL label does not work for manually-edited URLs --- chrome/content/zotero/itemPane.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/chrome/content/zotero/itemPane.js b/chrome/content/zotero/itemPane.js index f4159db39..aed713799 100644 --- a/chrome/content/zotero/itemPane.js +++ b/chrome/content/zotero/itemPane.js @@ -319,7 +319,8 @@ var ZoteroItemPane = new function() if (fieldNames[i] == 'url' && val) { label.setAttribute("isButton", true); - label.setAttribute("onclick", "ZoteroPane.loadURI(this.nextSibling.value, event)"); + // TODO: make getFieldValue non-private and use below instead + label.setAttribute("onclick", "ZoteroPane.loadURI(this.nextSibling.firstChild ? this.nextSibling.firstChild.nodeValue : this.nextSibling.value, event)"); label.setAttribute("tooltiptext", Zotero.getString('pane.item.goToURL.online.tooltip')); } else if (fieldNames[i] == 'abstractNote') {