resources/src/js/zotero.js
// populate the link button and update main screen link
populate the link button and update main screen link
populate the link button and update main screen link
function updateLink(node) {
	var itemDocLinkButton = document.getElementById(
	    "item-document-link-button");
	var link = null;
	if (node) {
	    link = createDocumentLink(node);
	}
	if (link) {
	    itemDocLinkButton.setAttribute('data-original-title', link);
	    itemDocLinkButton.classList.remove('disabled');
	} else {
	    itemDocLinkButton.removeAttribute('data-original-title');
	    itemDocLinkButton.classList.add('disabled');
	}
    }
function updateLink ( node ) { var itemDocLinkButton = document . getElementById ( "item-document-link-button" ) ; var link = null ; if ( node ) { link = createDocumentLink ( node ) ; } if ( link ) { itemDocLinkButton . setAttribute ( 'data-original-title' , link ) ; itemDocLinkButton . classList . remove ( 'disabled' ) ; } else { itemDocLinkButton . removeAttribute ( 'data-original-title' ) ; itemDocLinkButton . classList . add ( 'disabled' ) ; } }
populate the link button and update main screen link
populate the link button and update main screen link