Added a library link to QuickFormat dialog, fix url

This commit is contained in:
Mikko Rönkkö 2012-02-11 13:19:36 +02:00
parent 0d0a6f38b2
commit c7b4c41aee

View file

@ -914,11 +914,10 @@ var Zotero_QuickFormat = new function () {
var libraryName = item.libraryID ? Zotero.Libraries.getName(item.libraryID)
: Zotero.getString('pane.collections.library');
var libraryLink = document.getElementById("citation-properties-library-link");
//TODO: Localize "Open in "
libraryLink.textContent ="Open in "+libraryName;
libraryLink.onclick=function() {window.open('zotero://select/'+item.key)};
libraryLink.onclick=function() {window.open('zotero://select/item/'+(item.libraryID ? item.libraryID : 0)+'_'+item.key)};
target.setAttribute("selected", "true");
panel.openPopup(target, "after_start",