Fixes #595, Clicking URL label does not work for manually-edited URLs

This commit is contained in:
Dan Stillman 2007-03-28 15:19:52 +00:00
parent f886704830
commit f1f6e351da

View File

@ -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') {