drupal-civicrm/sites/all/modules/civicrm/js/crm.livePage.js

13 lines
449 B
JavaScript
Raw Permalink Normal View History

2018-01-14 15:10:16 +02:00
// http://civicrm.org/licensing
// Adds ajaxy behavior to a simple CiviCRM page
CRM.$(function($) {
var active = 'a.button, a.action-item:not(.crm-enable-disable), a.crm-popup';
$('#crm-main-content-wrapper')
// Widgetize the content area
.crmSnippet()
// Open action links in a popup
.off('.crmLivePage')
.on('click.crmLivePage', active, CRM.popup)
.on('crmPopupFormSuccess.crmLivePage', active, CRM.refreshParent);
});