Skip to content

Instantly share code, notes, and snippets.

@colemanw
Created April 17, 2014 15:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save colemanw/10993710 to your computer and use it in GitHub Desktop.
Save colemanw/10993710 to your computer and use it in GitHub Desktop.
Open civicrm activity view in popup
cj(function($) {
$('#crm-container').on('click', '.crm-contact-activity-links a.action-item-first', function(e) {
var url = $(this).attr('href');
$('<div class="crm-container" />').dialog({
title: 'View Activity',
open: function() {
$(this).load(url + '&snippet=1');
}
});
e.preventDefault();
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment