mirror of
https://github.com/zotero/zotero.git
synced 2026-10-08 03:08:19 +00:00
Fixes #595, Clicking URL label does not work for manually-edited URLs
This commit is contained in:
parent
f886704830
commit
f1f6e351da
1 changed files with 2 additions and 1 deletions
|
|
@ -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') {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue