Skip to content

Commit

Permalink
copy to clipboard optional
Browse files Browse the repository at this point in the history
  • Loading branch information
retorquere committed Jul 24, 2015
1 parent 87f7a76 commit ccea20a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion chrome/content/zotero-better-bibtex/web-endpoints.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,7 @@ class Zotero.BetterBibTeX.CAYW.CitationEditInterface
keyprefix: ''
keypostfix: ''
separator: ','
clipboard: false
}

for own key of @config
Expand All @@ -240,6 +241,6 @@ class Zotero.BetterBibTeX.CAYW.CitationEditInterface
cite = Zotero.BetterBibTeX.keymanager.get({itemID: item.id}, 'on-export').citekey
citation.push(@config.keyprefix + cite + @config.keypostfix)
citation = @config.citeprefix + citation.join(@config.separator) + @config.citepostfix
Zotero.Utilities.Internal.copyTextToClipboard(citation)
Zotero.Utilities.Internal.copyTextToClipboard(citation) if @config.clipboard
@deferred.fulfill(citation)
Zotero.Integration.currentWindow.close()

0 comments on commit ccea20a

Please sign in to comment.