diff --git a/chrome/content/zotero/xpcom/itemTreeView.js b/chrome/content/zotero/xpcom/itemTreeView.js index 70acc80c4a..56b3590332 100644 --- a/chrome/content/zotero/xpcom/itemTreeView.js +++ b/chrome/content/zotero/xpcom/itemTreeView.js @@ -1736,18 +1736,26 @@ Zotero.ItemTreeView.prototype._updateIntroText = function() { html = Zotero.Utilities.htmlSpecialChars(html); html = html.replace( /\[([^\]]+)]/, - '$1` + '$1' ); p.innerHTML = html; div.appendChild(p); // Activate text links for (let span of div.getElementsByTagName('span')) { - if (span.classList.contains('text-link') && !span.hasAttribute('onclick')) { - span.onclick = function () { - doc.defaultView.ZoteroPane.loadURI(this.getAttribute('data-href')); - }; + if (span.classList.contains('text-link')) { + if (span.hasAttribute('data-href')) { + span.onclick = function () { + doc.defaultView.ZoteroPane.loadURI(this.getAttribute('data-href')); + }; + } + else if (span.hasAttribute('data-action')) { + if (span.getAttribute('data-action') == 'open-sync-prefs') { + span.onclick = () => { + Zotero.Utilities.Internal.openPreferences('zotero-prefpane-sync'); + }; + } + } } }