Skip to content

Instantly share code, notes, and snippets.

@procload
Created March 2, 2012 21:20
Show Gist options
  • Save procload/1961493 to your computer and use it in GitHub Desktop.
Save procload/1961493 to your computer and use it in GitHub Desktop.
# Customize the content that's coming out when hovering over a vcard
vcardContent = (element) ->
content = $(element).children('.additional-details').clone().remove().html();
return content
$('.vcard').popover({
trigger : 'hover',
title : $(this).attr('title'),
content : vcardContent($('.vcard'))
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment