Fixes #595, Clicking URL label does not work for manually-edited URLs
This commit is contained in:
parent
f886704830
commit
f1f6e351da
|
@ -319,7 +319,8 @@ var ZoteroItemPane = new function()
|
||||||
|
|
||||||
if (fieldNames[i] == 'url' && val) {
|
if (fieldNames[i] == 'url' && val) {
|
||||||
label.setAttribute("isButton", true);
|
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'));
|
label.setAttribute("tooltiptext", Zotero.getString('pane.item.goToURL.online.tooltip'));
|
||||||
}
|
}
|
||||||
else if (fieldNames[i] == 'abstractNote') {
|
else if (fieldNames[i] == 'abstractNote') {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user